Skip to content

Instantly share code, notes, and snippets.

View hemanth's full-sized avatar
🐜
🧘‍♂️

Hemanth HM hemanth

🐜
🧘‍♂️
View GitHub Profile
@nzakas
nzakas / simplemap.js
Created April 3, 2014 17:38
A simple map implementation for JavaScript (not intended to be an ES6 polyfill)
function SimpleMap() {
this._data = {};
}
SimpleMap.prototype = {
get: function(key) {
return this.has(key) ? this._data[key] : null;
},
# Ajaxterm was written by Antony Lesuisse (email: al AT udev.org),
# License Public Domain.
# Terminal class made serializable/picklealbe by using a Metaclass
# (c) 2009 FastSoft
# MIT License
import array, cgi, re
def TerminalMetaclass(name, bases, attys):
@hemanth
hemanth / egit.textile
Created September 19, 2010 12:07 — forked from tekkub/egit.markdown

First, a warning

EGit/JGit is a reimplementation of git in java, due to this GitHub does not officially support it. Issues have happened and repositories have been corrupted by them. While it is usually a simple matter to repair these repos due to git’s distributed nature, be aware that EGit may not work as well as the official git binaries.

GitHub officially supports msysgit (openssh) on windows and precompiled or self-compiled binaries on mac and linux. The following guide was submitted by a user and may be out of date.


Another description on how to use EGit and how to upload to Github can be found in the following EGit Tutorial


@rkatic
rkatic / Readme.md
Created September 22, 2010 12:12
Userscript that auto appends things in reddit.

###Reddddit

Auto appends things scrolling down the page eliminating the need to click the next link.

##Install/Update

To toggle Auto Appending, click on the respective link near your username (above the login form). The asteriks near that toggler opens this page so you can easily check for new versions (specially if reddit changes).

Script will also check daily if there is a new version of it worth of user attention.

@johan
johan / dnd.js
Created December 4, 2011 22:03 — forked from johan/dnd.js
Drag and drop geo-json feature files to paint your planet!
// http://www.html5rocks.com/en/tutorials/file/dndfiles/
d3.select('svg')
.on('dragover', handleDragOver)
.on('drop', handleFileSelect)
;
function handleFileSelect() {
var event = d3.event
, files = event.dataTransfer.files // FileList object
, about = []
require 'watir-webdriver'
browser = Watir::Browser.new :ie
p browser.driver.capabilities
File.open("test.html", "w") { |file| file << DATA.read }
browser.goto "file://#{File.expand_path 'test.html'}"
browser.button(:name => "save").click
@hemanth
hemanth / webdev.md
Created June 9, 2012 03:00 — forked from dideler/bootstrapping.md
Bootstrapping
@hemanth
hemanth / data-markdown.user.js
Created June 9, 2012 05:42 — forked from paulirish/data-markdown.user.js
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@hemanth
hemanth / Object.protectProperty.js
Created June 17, 2012 05:33
Protected properties using Name objects
// The following depends on a quirk in V8 to work.
// Depends on Map and WeakMap, which can be:
// * turned on in Chrome's about:flags
// * enabled in node using --harmony_collections or --harmony
// * shimmed via https://github.com/Benvie/ES6-Harmony-Collections-Shim
// Provides:
// * Name
// * Object.protectProperty
@hemanth
hemanth / ebooks.md
Created July 24, 2012 13:56 — forked from roidrage/ebooks.md
Self-published and awesome