Skip to content

Instantly share code, notes, and snippets.

View theharq's full-sized avatar

Hildebrando Rueda theharq

  • Berlin, Germany
View GitHub Profile
@theharq
theharq / output.txt
Created February 9, 2016 21:41 — forked from ddlsmurf/output.txt
YAML succinct tutorial
# Example with basic types
---
hash:
  string: some text
  number: 12345
  array_of_bool: [on, off, true, false, yes, no]
  ruby symbol: :symbol
  array:
    - item one
    - item two
@theharq
theharq / pull_request.md
Last active October 23, 2015 15:09 — forked from diiq/pull_request.md
Pull Request Template

JIRA issue: link-to-jira

What this PR does:

Explain in a few sentences what functionality changed, and how. Can your changes be seen by a user? Then add a screenshot. Is it an interaction? Perhaps a recording.

Notes

Are there any surprises? Anything that was particularly difficult, or clever, or made you nervous, and should get particular attention during review? Call it out.

$flash-foreground: $background-color;
.flash{
background: $background-color;
box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
font-size: 16px;
font-weight: bold;
left: 0;
padding: $base-spacing 0;
position: fixed;
@theharq
theharq / methods_returning.rb
Created January 31, 2014 17:23 — forked from peterc/methods_returning.rb
This adds a method to any object were you cand find which methods returns the desired result
require 'stringio'
require 'timeout'
class Object
def methods_returning(expected, *args, &blk)
old_stdout = $>
$> = StringIO.new
methods.select do |meth|
Timeout::timeout(1) { dup.public_send(meth, *args, &blk) == expected rescue false } rescue false
@theharq
theharq / powrc.sh
Last active December 31, 2015 16:19 — forked from nbibler/gist:5307941
.powrc file
if [ -f "$rvm_path/scripts/rvm" ]; then
source "$rvm_path/scripts/rvm"
if [ -f ".rvmrc" ]; then
source ".rvmrc"
fi
if [ -f ".ruby-version" ]; then
rvm use `cat .ruby-version`
fi
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
@theharq
theharq / Gemfile
Last active December 15, 2015 04:38 — forked from nathancolgate/Gemfile
ice_cube gem example
# Add these two gems
gem 'ice_cube', '0.9.3'
gem 'squeel', '1.0.16'