Skip to content

Instantly share code, notes, and snippets.

Avatar

Abhishek Hingnikar darkyen

View GitHub Profile
View 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)]
View browserify.js
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 Aug 29, 2015
GNUReligion
View thoughts.md

##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 Aug 8, 2012
readReference error with node-mongodb-native
View app.js
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',
View Friendly Links & Pro Tips
View supaignore.js
/*
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(){
View css_editor.js
/* css_editor.js */
module.exports = function(element,css){
for(var key in css){
element.style[key] = css[key];
}
}
View Second.js
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.
View puffy.css
/* (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 Oct 16, 2012
This is just an experiment! There are certainly better ways to show an image of a MacBook, but none as fun as this :)
View index.html
<i class="macbook"></i>