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
express = require 'express' | |
redis = require 'redis' | |
app = express() | |
requestCount = 0 | |
client = null | |
#Going to use Date as the Key | |
getKey= -> | |
d = new Date() |
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 'socket' | |
host = '127.0.0.1' | |
port = 2003 | |
socket = TCPSocket::new(host, port) | |
socket.puts("system.loadavg_1min 2.0 #{Time.now.to_i}\n") |
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
javascript:var els = Ext.select('a[class=lt-add-offer-link]').elements;for(var i in els){els[i].click()} |
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
javascript:function pToMog(){ | |
var song = document.getElementsByClassName('songTitle')[0].text; | |
var artist = document.getElementsByClassName('artistSummary')[0].text; | |
window.open('https://mog.com/m#search/'+artist+' '+song);/*Pandora to Mog by Saad*/ | |
}; | |
pToMog(); | |
void(0); |
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
function threadedRequests($urls){ | |
$mh = curl_multi_init(); | |
$curl_array = array(); | |
foreach($urls as $i => $url){ | |
$curl_array[$i] = curl_init($url); | |
curl_setopt($curl_array[$i], CURLOPT_RETURNTRANSFER, true); | |
curl_multi_add_handle($mh, $curl_array[$i]); |
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
{ | |
"name": "Kiva Newest Loans - Saad", | |
"version": "0.1", | |
"description": "A small handy extension to view the latest loans on Kiva.", | |
"browser_action": { | |
"default_icon": "icon.png", | |
"popup" : "popup.html" | |
}, | |
"permissions": [ | |
"http://api.kivaws.org/" |