Skip to content

Instantly share code, notes, and snippets.

View nsdevaraj's full-sized avatar
🎯
Focusing

N.S.Devaraj nsdevaraj

🎯
Focusing
View GitHub Profile
This file has been truncated, but you can view the full file.
BEGIN TRANSACTION;
CREATE TABLE thirukkural (
`Number` INT,
`Line1` VARCHAR(50) ,
`Line2` VARCHAR(34) ,
`Translation` VARCHAR(364) ,
`mv` VARCHAR(158),
`sp` VARCHAR(436) ,
`mk` VARCHAR(362) ,
@Jc2k
Jc2k / post.md
Last active June 27, 2018 07:02
My first alexa skill

Backend

I used the alexandra python package. See https://pypi.python.org/pypi/alexandra. It abstracts away dealing with HTTP or Lambda and you just use decorators to map Alexa intents to python functions. Here is my test.py:

import alexandra

app = alexandra.Application()
name_map = {}

@app.launch

@vool
vool / ryanapi.md
Last active December 4, 2025 10:25
Ryanair api endpoints

Note

This gist was created in 2015 with endpoints and parameters info for Ryanair’s API's, I just wrote a bit about it here

It's 2025, if you have landed here while looking to access Ryanair’s API I suggest you check out ryanair-py by Ciarán Ó hAoláin.


API domains

https://desktopapps.ryanair.com

@RohanBhanderi
RohanBhanderi / Git_mergetool_commands
Last active February 24, 2025 18:08
Git Mergetool and difftool with Beyond Compare 4
//Git Mergetool and difftool with Beyond Compare 4
//For Windows
//IF running this command in git bash then escape $ with \
git config --global diff.tool bc4
git config --global difftool.bc4.cmd "\"C:/Program Files (x86)/Beyond Compare 4/BCompare.exe\" \"\$LOCAL\" \"\$REMOTE\""
git config --global difftool.prompt false
git config --global merge.tool bc4
git config --global mergetool.bc4.cmd "\"C:/Program Files (x86)/Beyond Compare 4/BCompare.exe\" \"\$LOCAL\" \"\$REMOTE\" \"\$BASE\" \"\$MERGED\""
git config --global mergetool.bc4.trustExitCode true
@jpsarda
jpsarda / MiniJSON.cs
Last active July 10, 2020 00:46 — forked from darktable/MiniJSON.cs
Added comments support, everything after a "#" is ignored, except if the "#" is in a token. It seems to work approximately the way monodevelop show the comments in orange color in a json file. (I know comments are not part of the json format, but it comes in handy sometimes).
/*
* Copyright (c) 2012 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining
@azat-co
azat-co / express.js
Last active August 19, 2018 03:30
Tutorial: REST API with Node.js and MongoDB using Mongoskin and Express.js
var express = require('express')
, mongoskin = require('mongoskin')
var app = express()
app.use(express.bodyParser())
var db = mongoskin.db('localhost:27017/test', {safe:true});
app.param('collectionName', function(req, res, next, collectionName){
req.collection = db.collection(collectionName)
@nsdevaraj
nsdevaraj / main.m
Created January 29, 2013 09:19
Command Line Interface for Cocoa
$cat > main.m
#import <Foundation/Foundation.h>
int main() {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSArray *words = [NSArray arrayWithObjects:@"Hello,", @"world!", @"Check", @"this", @"out!", nil];
NSLog(@"%@", [words componentsJoinedByString:@" "]);
[pool release];
return 0;
@nsdevaraj
nsdevaraj / node.js
Created November 26, 2012 12:47
inspect any node js variable
sys.puts(sys.inspect(any variable));
@amontalenti
amontalenti / script-inject-http-proxy.js
Created November 21, 2012 17:16
script injecting proxy for Node.JS
var httpProxy = require('http-proxy');
var url = require('url');
httpProxy.createServer(function(req, res, proxy) {
var isHtml = false,
write = res.write,
writeHead = res.writeHead,
params = url.parse(req.url, true).query,
dest = params.dest || 'localhost',
@prime31
prime31 / Unity2Dframeworks.txt
Created August 12, 2012 19:22
Unity 2D framework comparison
Key:
"-" negative point
"+" positive point
"+-" could go either way depending on your opinion or if it functions or not
Background Info: the last project we worked on needed basic 2D functionality (sprites and animations) and SpriteKit was born to fill this need (http://www.youtube.com/watch?v=cabAr2CdLmc). It has no fancy editors and was really made to fit a specific need and as of yet it has not been extended much further than the video shows. Something a bit more full featured is required for a new prototype and instead of spending a bunch of time extending SpriteKit we went on a search for alternatives. None of the below frameworks are perfect and they all have pluses and minuses. One thing SpriteKit had that none of the others do is automatic texture selection based on screen resolution. That is one thing I would like to see incorporated in every 2D framework and it kind of surprises me that it isn't one of the first features added when making a 2D framework.