Skip to content

Instantly share code, notes, and snippets.

View nsdevaraj's full-sized avatar
🎯
Focusing

N.S.Devaraj nsdevaraj

🎯
Focusing
View GitHub Profile
@nsdevaraj
nsdevaraj / datalayer_matrix.v1.json
Last active October 31, 2018 13:15 — forked from praveenn77/datalayer_matrix.v1.json
datalayer_matrix.v1.json
{
"metadata":[],
"datasource":{
"rows":[
{
"id":"region",
"value":"EAST",
"role": "category",
"ref":"easte",
"level":0,
@nsdevaraj
nsdevaraj / Free O'Reilly Books.md
Created February 11, 2018 14:29 — forked from augbog/Free O'Reilly Books.md
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@nsdevaraj
nsdevaraj / main.py
Created January 10, 2016 06:50 — forked from gear11/main.py
Simple Python proxy server based on Flask and Requests. See: http:/python-proxy-server/gear11.com/2013/12/python-proxy-server/
"""
A simple proxy server. Usage:
http://hostname:port/p/(URL to be proxied, minus protocol)
For example:
http://localhost:8080/p/www.google.com
"""
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
require 'bitcoin'
def hex_string_to_bytes(string)
[string].pack("H*")
end
def bytes_to_hex_string(bytes)
bytes.unpack("H*").first
end