Skip to content

Instantly share code, notes, and snippets.

#!/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
return unless Modernizr.svg
return if Blog.isPhone()
return if /\#novine/.test(location.href)
return if not (/\#leavesdammit/i.test(window.location.href) or not $.browser.mozilla)
class NavVisualization
@links = [
source: "_root"
target: "_s11"
thickness: 5
@axiak
axiak / gist:3902068
Created October 16, 2012 21:07
Determine which portals have broken intelligence models
We couldn’t find that file to show.
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)
var result = {}
_.each(input, function (key, value) { if (value !== false) this[key] = value; }, result);
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
return unless Modernizr.svg
class NavVisualization
@links = [
source: "_root"
target: "Home"
thickness: 7
,
source: "Home"
pwned
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);
class String
def incord(x)
(self.ord + x).chr
end
end
p 'a'.incord 2