Skip to content

Instantly share code, notes, and snippets.

View serradura's full-sized avatar
🎯
Focusing

Rodrigo Serradura serradura

🎯
Focusing
View GitHub Profile
@serradura
serradura / stopwatch-app.html
Created May 10, 2016 14:30
Stopwatch App - Based on http://www.sitepoint.com/series/building-a-stopwatch-in-react/, but using ES6 and React 15.0.1.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Serradura's version</title>
<style media="screen">
body {
font-family: 'HelveticaNeue-UltraLight', 'Helvetica Neue UltraLight',
'Helvetica Neue', Helvetica, Arial, sans-serif;
margin: 0;
######################################
# Ruby doc: http://ruby-doc.org/core #
######################################
#########
# Setup #
#########
#
# Install the gems:
# =================
@serradura
serradura / scripts.sh
Last active July 29, 2016 02:44
Short shell scripts
# # Uninstall all installed gems - Ruby 2.3.x
gem list | grep -Ev 'test-unit|rvm|rubygems-bundler|rdoc|psych|power_assert|net-telnet|io-console|gem-wrappers|executable-hooks|did_you_mean|rake|bundler-unload|bigdecimal|minitest|json' | cut -d" " -f1 | xargs gem uninstall -aIx
# Uninstall all installed gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
# Delete all git local tags
git tag | grep | cut -d" " -f1 | xargs git tag -d
# Manual js minification
@serradura
serradura / Linux.global.gitignore
Last active August 29, 2015 14:16
Linux global gitignore
#########
# Linux #
#########
*~
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
@serradura
serradura / OSX-setup.sh
Last active September 4, 2015 17:21
Dotfiles for standard stack setup
# chmod +x OSX-setup.sh
if ! type "git" > /dev/null; then
echo "Installing git"
brew install git
fi
if [ -d "~/.oh-my-zsh" ]; then
# Installing oh my zsh
/*************
CONSTRUCTOR:
*************
Notify.options = {"closeButton": true}; // Defines global options.
notify = new Notify({"closeButton": false}); // You can pass custom options
*/
/*******
USAGE
*******
@serradura
serradura / fgraph.rb
Last active December 10, 2015 00:58 — forked from anonymous/fb_public.rb
Two clients: HGet (easy way to have Net::HTTP responses supports HTTP and HTTPS) and FGraph (shortcut to do Facebook Graph API requests)
# Examples:
# client = FGraph.new("USERNAME")
#
# if you need see response details use:
# client.request # returns a Net::HTTPFound instance, with this you can see the status, headers# Examples:
# client = FGraph.new("USERNAME")
#
# client.data # returns the parsed response body
# if you need an alias to get the api data response, use:
@serradura
serradura / LICENSE.txt
Created April 27, 2012 17:10 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Rodrigo Serradura <http://github.com/serradura>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.