Skip to content

Instantly share code, notes, and snippets.

View fhd's full-sized avatar

Felix H. Dahlke fhd

View GitHub Profile
@fhd
fhd / js.el
Created June 1, 2012 07:08
Emacs 23 js.el that indents multiline var statements properly
;;; js.el --- Major mode for editing JavaScript
;; Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
;; Author: Karl Landstrom <karl.landstrom@brgeight.se>
;; Daniel Colascione <dan.colascione@gmail.com>
;; Maintainer: Daniel Colascione <dan.colascione@gmail.com>
;; Version: 9
;; Date: 2009-07-25
;; Keywords: languages, oop, javascript
@fhd
fhd / js.el
Created June 1, 2012 06:40
Emacs 24 js.el that indents multiline var statements properly
;;; js.el --- Major mode for editing JavaScript -*- lexical-binding: t -*-
;; Copyright (C) 2008-2012 Free Software Foundation, Inc.
;; Author: Karl Landstrom <karl.landstrom@brgeight.se>
;; Daniel Colascione <dan.colascione@gmail.com>
;; Maintainer: Daniel Colascione <dan.colascione@gmail.com>
;; Version: 9
;; Date: 2009-07-25
;; Keywords: languages, javascript
@fhd
fhd / gist:1325846
Created October 30, 2011 12:17
Duck typing in C++
class Duck {
public:
void fly()
{
...
}
void swim()
{
...
@fhd
fhd / gist:1135112
Created August 9, 2011 20:30
npm debug log
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/usr/local/bin/npm',
npm verb cli 'install',
npm verb cli '-g',
npm verb cli 'express',
npm verb cli '--loglevel',
npm verb cli 'silly' ]
npm info using npm@1.0.23
npm info using node@v0.4.10