Skip to content

Instantly share code, notes, and snippets.

View darkyen's full-sized avatar

Abhishek Hingnikar darkyen

View GitHub Profile
@darkyen
darkyen / cc.py
Created February 27, 2015 10:55
cc.py
import cv2;
import numpy as np;
def rectify(h):
h = h.reshape((4,2))
hnew = np.zeros((4,2),dtype = np.float32)
add = h.sum(1)
hnew[0] = h[np.argmin(add)]
hnew[2] = h[np.argmax(add)]
gulp.task('browserify', function(callback){
function createBundle(b_config){
var bundler = browserify(b_config.entry, {
debug: true
});
var bundle = function(){
@darkyen
darkyen / thoughts.md
Last active August 29, 2015 14:25
GNUReligion

##Disclaimer The following are my own personal views, and are solely based on my understanding, I do not wish to offend anyone, this is merely a thought experiment.

##Religion is worlds first open source product

In the programming world we have the concept of open source software, where somebody writes the original code and publishes the product, people use it, add features to it when they disagree on the future of the product the product is essentially branched and eventually becomes completely different the major example of this is the well known

@darkyen
darkyen / app.js
Created August 8, 2012 04:18
readReference error with node-mongodb-native
var mongodb = require( 'mongodb' ),
Server = mongodb.Server,
Db = mongodb.Db,
MongoModule = {};
MongoModule.setup = function() {
// Initialize the db connection
var client = new Db( 'tartempion',
new Server(
'127.0.0.1',
@darkyen
darkyen / Friendly Links & Pro Tips
Created August 23, 2012 13:45
JS Game Comp - Rules
@darkyen
darkyen / supaignore.js
Created September 19, 2012 11:56
supaignorer
/*
Since Octavian once appointed me as a vampire slayer.
I am here by giving you a tool to kill help vampires
*/
/*
Run it in console and then do
blade.slash(<idOfVampire>); to nuke em alive em.
blade.mercy(<idOfVampire>); to leave em alive.
*/
var blade = new (function(){
@darkyen
darkyen / css_editor.js
Created September 22, 2012 11:54
Refactoring
/* css_editor.js */
module.exports = function(element,css){
for(var key in css){
element.style[key] = css[key];
}
}
@darkyen
darkyen / Second.js
Created September 22, 2012 12:18
Second
var uuid = require( 'node-uuid' ),
engines = require( './engines.js' ),
util = require( './util.js' );
/**
* This is what the code must do:
* - Connect to the websocket.
* - Create a channel which name is a generated UUID.
* - Listen on "send key" event from the websocket to get
* a keyCode.
@darkyen
darkyen / puffy.css
Created October 1, 2012 18:33
Puffy V1.0
/* (C) Tapeer Team 2012
* Puffy is/was/will be a brain work of Abhishek Hingnikar , Nikita Arora , Lila Pustovoyt , Jennifer Inzer and
* other members of tapeer design team
* AWW SERIOUSLY MAN YOU GUYS HAVE READ THIS N1000 TIMES ... SO
* THIS IS JUST TO SAY THIS FILE IS DISTRIBUTED UNDER MIT LICENSE HAPPY ? KTHX BYE
*/
@import url(http://fonts.googleapis.com/css?family=Josefin+Sans);
@darkyen
darkyen / index.html
Created October 16, 2012 06:14
This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
<i class="macbook"></i>