Skip to content

Instantly share code, notes, and snippets.


Shripad Krishna shripadk

Block or report user

Report or block shripadk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am shripadk on github.
  • I am shripadk ( on keybase.
  • I have a public key ASB3td--QKqD1eTKdae2A2J7UJeW5WrO1KdF901ifacuWwo

To claim this, I am signing this object:

shripadk / MenuServicos.jsx
Created Dec 10, 2015 — forked from LuizMoreira/MenuServicos.jsx
[Rubix] - Menu item - I can't load menu item dynamically.
View MenuServicos.jsx
var ReactIntl = require('react-intl');
var IntlMixin = ReactIntl.IntlMixin;
var FormattedNumber = ReactIntl.FormattedNumber;
var MenuServicos = React.createClass({
mixins: [IntlMixin],
render: function() {
var menu = (
shripadk / webpack.js
Created Oct 20, 2014
webpack node api
View webpack.js
var path = require('path');
var webpack = require('webpack');
var WebPackDevServer = require('webpack-dev-server');
var uglify = new webpack.optimize.UglifyJsPlugin();
var config = [
entry: ['./src/main.js'],
output: {
View tx rejected
View bitcoin-notification-client.js
var redis = require('redis');
var client = redis.createClient();
var pullNotifications = function() {
// if notification in list rpop it else block until one is available; timeout=0;
client.brpop('_bitcoin_notifications_', '_bitcoin_notifications_', 0, function(e, data) {
if(!data.length) return;
data = JSON.parse(data[1]);
switch(data.type) {
View gist:5691331
# download libpng 1.4.x (1.5 didn't work yet with GraphicsMagick 1.3.12)
./configure --prefix=$HOME/INST && make && make install
# download libjpeg
./configure --prefix=$HOME/INST && make && make install
# download GraphicsMagick
CFLAGS=-I$HOME/INST/include LDFLAGS=-L$HOME/INST/lib ./configure --prefix=$HOME/INST --disable-openmp --disable-openmp-slow && make && make install
shripadk / watch_jade.js
Last active Dec 17, 2015
Script that watches Jade files and compiles all of them to a single javascript file.
View watch_jade.js
#!/usr/bin/env node
* dependencies:
* clientjade (sudo npm install -g clientjade)
* chokidar (sudo npm install chokidar)
* how to run:
* node watch_jade.js
* to render template, just call:
* jade.render(domNode, templateName, data);
shripadk /
Last active Dec 10, 2015 — forked from mbostock/.block
X-Mouseover with Basis line

A line chart with mouseover so that you can read the y-value based on the closest x-value. The x-value is found using d3.mouse and scale.invert. The y-value is then found by bisecting the data.

View gist:4056550
var fs = require('fs');
function removeSockFile(file) {
if(fs.existsSync(__dirname+"/tmp/"+file)) {
View gist:4056389
var http = require('http');
var cp = require('child_process');
var httpProxy = require('http-proxy');
var sentinelChild = cp.spawn('node', ['app.js'], {stdio: 'inherit'});
var agentChild = cp.spawn('node', ['agent/agent.js'], {stdio: 'inherit'});
var agent = new httpProxy.HttpProxy({
target: {
host: 'localhost',
You can’t perform that action at this time.