Category Archives: Web

Create a rhodecode gist directly from CLI

With your rhodecode installation comes a nice gist tool that allows you to share and edit code snippets (just like the well known gist from github). Less known but very very handy is its client-side counterpart, aka the rhodecode-gist command that allows you to pipe the output of any shell script directly into a new gist, easing things like:
cat myscript.py|rhodecode-gist --private
for quick sharing, or
$buggy_command|rhodecode-gist
for sharing a trace with developers.

Installing rhodecode-gist

Sadly, rhodecode-gist is bundled with rhodecode-tools that isn’t (yet) available on pypi. Instead you’ll have to fetch it from the official website:
pip install https://code.rhodecode.com/rhodecode-tools/archive/stable.zip

Configuring rhodecode-gist

Server-side

You need to generate an API Key, just login to your rhodecode account, User → My account → API keys
Copy the new API Key.

Client-side

Simply run
rhodecode-gist --apikey={above key} --apihost=http://{url to your RC installation} --save-config

And that’s all, now you can use the above commands! As optional parameters, you can also specify the gist visibility (public/private), set a filename/description and specify the lifetime, the command should return a json string containing your brand new gist URL.

Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?

Some cool HTML5/CSS3/JS/WebGL/SVG demos to share

Quick post to share with you some cool HTML5/CSS3/JS/WebGL/SVG demos I discovered more or less recently 🙂

http://lab.hakim.se/ is gallery of mostly html/css/js experiments, just like http://chromeexperiments.com/ but with less apparent chrome-evangelism 😉

When speaking about transitions and animations, the most obvious choice seems to be CSS+JS, but I think that SVG can be somehow mind-blowing:
http://vlog.it/ is powered by RaphaëlJS: http://raphaeljs.com/ which is really good at animating stuff: http://raphaeljs.com/animation.html

Mozilla dev derbys are pushed here: https://developer.mozilla.org/en-US/demos/devderby and are worth a try because they mostly focus on one tech (CSS transforms, Audio API, WebGL, Camera API, …) thus giving a better state-of-the-art and overview of what can be done in each field separately.

If you have more cool demos to share, just feel free to leave a comment 🙂 !

Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?