View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

View keybase.md

Keybase proof

I hereby claim:

  • I am rgaidot on github.
  • I am rgaidot (https://keybase.io/rgaidot) on keybase.
  • I have a public key whose fingerprint is D9ED 7BB2 9708 4E2A 9EE5 5729 48EF EB51 7678 6B01

To claim this, I am signing this object:

View yin-yang.rb
1 2 3 4 5 6 7 8 9 10
require 'continuation'
#
# Messing around with mimicking Scheme in Ruby by implementing the Yin/Yang puzzle with Kernel#callcc and a fake 'let' macro
#
# See also:
# http://blog.gonzih.me/blog/2013/11/26/yin-yang-callcc-puzzle-in-ruby/,
# http://stackoverflow.com/questions/16843853/how-to-implement-let-in-scheme
#
 
# In Scheme (the original)
View mesosphere.sh
1 2 3 4 5 6 7 8 9
#! /bin/bash
 
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/mesosphere.list
 
sudo apt-get -y update --fix-missing
sudo apt-get -y install mesosphere
View Awesome-Electronic-and-Hardware-platform.md
View facebook_friends_ranking.js
1 2 3 4 5 6 7 8 9 10
function creator(o, data, node){
var content = document.createElement(node);
content.cellspacing = "3"
var cell = document.createTextNode(data);
content.appendChild(cell);
o.appendChild(content);
}
function displayData(arr){
var table = document.createElement('table');
var thead = document.createElement('thead');
View highlight-html-elements.js
1 2
for(i=0; A=$$("*")[i++];)
A.style.outline="1px solid hsl("+i*9+",99%,50%)"
View bye.sh
1 2 3
#!/bin/bash
kill -9 `ps ax | grep "$1" | awk '{print $1}'` &2>/dev/null
echo "byebye $1 :-)"
View Gemfile
1 2 3 4 5 6 7
source :rubygems
 
gem "actionpack", "~> 4.0"
gem "railties", "~> 4.0"
gem "tzinfo"
 
gem "thin"
View cpustatus.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
# cpustatus
#
# Prints the current state of the CPU like temperature, voltage and speed.
# The temperature is reported in degrees Celsius (C) while
# the CPU speed is calculated in megahertz (MHz).
 
function convert_to_MHz {
let value=$1/1000
echo "$value"
Something went wrong with that request. Please try again.