This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -z $1 ]]; then | |
cd ~/Documents | |
find . -maxdepth 1 -type d -print0 | xargs -P8 -n1 -0 $0 | |
rm -f /tmp/*.git.log | |
exit 0 | |
fi | |
cd "$1" | |
if [[ -e ".git" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "net/https" | |
require "json" | |
require "uri" | |
require "pp" | |
request_url = "https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo" | |
url = URI.parse(request_url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var result = {} | |
_.each(input, function (key, value) { if (value !== false) this[key] = value; }, result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SEGMENT_TABLE = { | |
1: (39.5, 40), | |
2: (40, 50), | |
} | |
def get_segment(position): | |
for key, (lower, upper) in SEGMENT_TABLE.items(): | |
if lower <= position < upper: | |
return key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return unless Modernizr.svg | |
class NavVisualization | |
@links = [ | |
source: "_root" | |
target: "Home" | |
thickness: 7 | |
, | |
source: "Home" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pwned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
border-color: #29447E #29447E #1A356E; | |
color: white; | |
background-color: #5B74A8; | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#637BAD), to(#5872A7)); | |
background-image: -moz-linear-gradient(#637BAD, #5872A7); | |
background-image: -o-linear-gradient(#637BAD, #5872A7); | |
background-image: linear-gradient(#637BAD, #5872A7); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class String | |
def incord(x) | |
(self.ord + x).chr | |
end | |
end | |
p 'a'.incord 2 |