Skip to content

Instantly share code, notes, and snippets.

@jaseemabid
jaseemabid / objects.js
Created August 23, 2011 13:37 — forked from kaaes/objects.js
ECMA5 object cheatsheet
/**
* Object descriptor
**/
var a = {
prop1 : 14
}
var descriptorObj1 = Object.getOwnPropertyDescriptor(a, 'prop1');
@jaseemabid
jaseemabid / simple_this_ex.js
Created August 23, 2011 14:06 — forked from kaaes/simple_this_ex.js
basic example of this object
var a, b, c, d, e;
a = function(obj) {
return this;
}
// when you call the function in 'function form' 'this' is window object
a(); // window
@jaseemabid
jaseemabid / ReadMe.md
Created October 16, 2011 22:16 — forked from netroy/ReadMe.md
Simplest Static Webserver in Node.JS

Just install connect from npm. Run this in a directory that you'll like to serve static content from. To run on a specific port set ENV "StaticPort"

@jaseemabid
jaseemabid / git tutorials.md
Last active August 26, 2024 02:27 — forked from netroy/git tutorials.md
Awesome git tutorials I am finding here and there
@jaseemabid
jaseemabid / Connect-Websocket.js
Created March 25, 2012 17:21 — forked from netroy/Connect-Websocket.js
Connect with Websockets
var connect = require('connect'),
WebSocketServer = require('websocket').server,
app = connect.createServer();
app.use(connect.static(process.cwd()));
app.use(connect.router(function(app){
app.get("/", function(req, resp) {
resp.write("Hola !");
resp.end();
#!/usr/bin/env ruby
require "nokogiri"
require "open-uri"
def download(url, output_file)
exit unless system("wget -c #{url} --load-cookies=cookies.txt -O #{output_file}")
end
def download_pages
;;; auto-remove.el --- Auto remove unused functions in python
;;; Commentary:
;; Uses external tool autoflake to remove unused imports from a Python file.
;;; Code:
(defcustom python-autoflake-path (executable-find "autoflake")
"Autoflake executable path.
import logging
import time
logger = logging.getLogger(__name__)
def useful():
logger.debug('Hello from webapplib!')
time.sleep(0.01)

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would