Skip to content

Instantly share code, notes, and snippets.

@itay
itay / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am itay on github.
  • I am itay (https://keybase.io/itay) on keybase.
  • I have a public key whose fingerprint is 5256 8905 7D8B CCDC 9243 E380 F663 D2E7 FB95 289C

To claim this, I am signing this object:

//modinput.js
//A few prototypes namely Arg and Event are introduced to make the code more readable, toolable (syntax completion in editors/ides)
//and less error prone.
var splunk = require('splunk-sdk');
var mod = splunk.modularInput;
var logger = mod.logger;
// logger.info(..);
// logger.error(..);
@itay
itay / README.md
Last active August 29, 2015 13:56 — forked from tnightingale/README.md

This hexbin map shows the proximity of earthquakes (magnitude 3.0 or greater) in the Canterbury region of New Zealand during the month of September, 2010.

The map is created using Leaflet. The hexbin layer is a custom Leaflet layer which uses d3js to generate a svg hexbin overlay. The source for the custom leaflet layer is viewable here.

Earthquake data sourced from GeoNet.

@itay
itay / index.html
Last active December 23, 2015 23:09 — forked from kunalb/index.html
<html>
<head>
<title>Cyclic Sankeys</title>
<style type="text/css">
#chart {
height: 500px;
}
.node rect {
cursor: move;
Octavian:~/work/pandabits ineeman$ jitsu deploy
info: Welcome to Nodejitsu nko3-pandabits
info: jitsu v0.11.0, node v0.8.9
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node server.js
error: Error running command deploy
error: Unexpected token }
help: For help with this error contact Nodejitsu Support:
help: webchat: <http://webchat.nodejitsu.com/>
@itay
itay / gist:3711547
Created September 13, 2012 02:56
twitter states
location.displayName="*" location.country_code="United States" | rename location.displayName as place | rex field=place "(?<city>[^,]*), (?<state>.*)" | where state!="US" AND len(state)=2
@itay
itay / election.sh
Created September 13, 2012 00:44
Twitter Election Streaming
#!/bin/bash
$SPLUNK_HOME/etc/apps/social/bin/httpstream.py --username="<your_twitter_username>" --password=<password> --https --host="stream.twitter.com" --path="/1.1/statuses/filter.json?track=election,elect,politics,political,politician,Obama,president,Romney,Republican,Democrat,Democratic,Senate,economy,vote,gov,dem,rep,teaparty,tea party,progressive,liberal,conservative,voting,student loans,jobs,Rock the Vote,Congress,economy,healthcare,obamacare,parents insurance,taxes,debt,immigration,education,convention,DNC,RNC,debate,voter ID,voter suppression,voter fraud,abortion,Civil Rights,Foreign Policy,Animal Rights,Same Sex Marriage,Energy,2nd Amendment Rights,Drug Laws,legalization"
PID="$!"
trap "kill $PID" exit INT TERM HUP
wait
@itay
itay / npm-debug.log
Created December 16, 2011 21:43
1.1.0-beta5 issue
info it worked if it ends with ok
verbose cli [ 'node', '/Users/itay/.nvm/v0.6.6/bin/npm', 'install', 'jshint' ]
info using npm@1.1.0-beta-5
info using node@v0.6.6
verbose config file /Users/itay/.npmrc
verbose config file /Users/itay/.nvm/v0.6.6/etc/npmrc
verbose config file /Users/itay/.nvm/v0.6.6/lib/node_modules/npm/npmrc
verbose caching /Users/itay/node_modules/docco/package.json
verbose loadDefaults docco@0.3.0
verbose caching /Users/itay/node_modules/ejs/package.json