Skip to content

Instantly share code, notes, and snippets.

View shripadk's full-sized avatar
🎯
Working

Shripad Krishna shripadk

🎯
Working
View GitHub Profile
@shripadk
shripadk / MenuServicos.jsx
Created December 10, 2015 17:08 — forked from LuizMoreira/MenuServicos.jsx
[Rubix] - Menu item - I can't load menu item dynamically.
var ReactIntl = require('react-intl');
var IntlMixin = ReactIntl.IntlMixin;
var FormattedNumber = ReactIntl.FormattedNumber;
var MenuServicos = React.createClass({
mixins: [IntlMixin],
render: function() {
var menu = (
# 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
shripadk / README.md
Last active December 10, 2015 16:28 — 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.

// [~/Documents/code/node/myapp](master)$ ./bin/node -v
// => v0.2.1
// [~/Documents/code/node/myapp](master)$ ./bin/express -v
// => 1.0.0rc4
/**
* Module dependencies.
*/
require.paths.unshift(__dirname + '/lib/node');
@shripadk
shripadk / no.de.sh
Created September 29, 2010 16:30 — forked from isaacs/no.de.sh
#!/bin/bash
SERVER=https://api.no.de
SCRIPT="$0"
if [ ${SCRIPT:0:1} == "/" ]; then
SCRIPT="$(basename -- "$SCRIPT")"
fi
main () {
cmd=${1-help}
From 7cb51a4207a279f3f91dea854b6d70454a5fdb99 Mon Sep 17 00:00:00 2001
From: Joe ST <joe@fbstj.net>
Date: Thu, 26 Aug 2010 21:09:32 +0100
Subject: [PATCH] Adds HTTP basic auth
Signed-off-by: Joe ST <joe@fbstj.net>
---
lib/base64.js | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lib/cradle.js | 15 +++++++-
2 files changed, 124 insertions(+), 2 deletions(-)
From 7cb51a4207a279f3f91dea854b6d70454a5fdb99 Mon Sep 17 00:00:00 2001
From: Joe ST <joe@fbstj.net>
Date: Thu, 26 Aug 2010 21:09:32 +0100
Subject: [PATCH] Adds HTTP basic auth
Signed-off-by: Joe ST <joe@fbstj.net>
---
lib/base64.js | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lib/cradle.js | 15 +++++++-
2 files changed, 124 insertions(+), 2 deletions(-)
@shripadk
shripadk / gist:543572
Created August 22, 2010 09:25 — forked from jeffersongirao/gist:542289
Rails 3 with PostgreSQL working (pg gem)
This example shows how to setup an environment running Rails 3 beta 3 under ree-1.8.7-head with a 'rails3' gem set.
# pg gem does not seem to work with 1.9.2-head. Hence, reverting back to ree.
∴ rvm update --head
# ((Open a new shell)) or do 'rvm reload'
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install ree-1.8.7-head