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
#!/usr/bin/python | |
import sys | |
labels = [] | |
values = [] | |
for line in sys.stdin: | |
value, label = line.strip().split(' ') | |
labels.append(label) |
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
#!/usr/bin/python | |
import sys | |
labels = [] | |
values = [] | |
for line in sys.stdin: | |
value, label = line.strip().split(' ') | |
labels.append(label) |
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
<?php | |
$aOutput = array(); | |
$aLines = explode("\n", file_get_contents($argv[1])); | |
$aKeys = explode("\t", array_shift($aLines)); | |
foreach($aLines as $line) { | |
if (!trim($line)) { |
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
<script type="text/javascript"> | |
// Assumed prototypejs installed | |
function video_search(results) | |
{ | |
try { | |
var oEmbedURL = "http://vimeo.com/api/oembed.json?" | |
var params = { | |
callback: 'video_oembed', |
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
#counter { | |
width: 16px; | |
height: 16px; | |
border: 1px solid #aaa; | |
background: url('sprite_2col.png') 0 0 no-repeat; | |
} | |
#counter.frame_1 { background-position: 0 -17px; } | |
#counter.frame_2 { background-position: 0 -34px; } |
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
# Using standard lib methods | |
assert redirect? "not redirected" | |
query_hash = CGI.parse(URI.parse(redirected_to).query) | |
assert query_hash.fetch(query_param, false), "'#{query_param}' param is not set, or has an empty value" | |
url = URI.parse(url) | |
params = CGI.parse(url.query || '') | |
params[query_param] = query_hash[query_param] | |
url.query = params.map{|k,v| "#{CGI::escape(k)}=#{CGI::escape(v.first)}"}.join('&') |
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
#bufferList p.join { | |
background: #527DFF; | |
height: 16px; | |
position: absolute; | |
right: 4px; | |
top: 4px; | |
width: 16px; | |
overflow: hidden; | |
} |
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
"* " + $('customfield_10001-val').innerHTML.trim() + " points - '''" + ($$('#issue_header_summary a')[0].innerHTML) + "''' - [" + document.location.toString() + " " + ($('key-val').innerHTML) + "]" |
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 | |
RES=256 | |
while [ $RES != 0 ] | |
do | |
if [ $RES != 256 ] | |
then | |
sleep 2 | |
fi | |
/usr/bin/env php $* | |
RES=$? |
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
noob: { | |
dismissed: -2, | |
notNoob: -1, | |
total: 0, | |
invited: 1, | |
friendless: 2, | |
silent: 3, | |
talking: 4, | |
popular: 5, | |
lonely: 6, |
OlderNewer