Skip to content

Instantly share code, notes, and snippets.

View hildjj's full-sized avatar

Joe Hildebrand hildjj

View GitHub Profile
@hildjj
hildjj / Firefox Lines
Last active August 28, 2018 18:58
Firefox lines of code (from tokei)
$ tokei . -e third_party -s lines
--------------------------------------------------------------------------------
Language Files Lines Code Comments Blanks
--------------------------------------------------------------------------------
C++ 10956 5753882 4411352 595301 747229
JavaScript 58163 5690253 3657219 1214057 818977
HTML 66717 3471374 3005413 130585 335376
C Header 13935 2871337 1710080 754980 406277
C 2999 2112200 1514317 351977 245906
JSON 1174 1162180 1162180 0 0
'use strict'
class Frozen {
constructor() {
Object.freeze(this);
}
bar(...args) {
console.log('bar', ...args);
}
}
@hildjj
hildjj / stylo.html
Created July 11, 2017 15:54
Test if stylo is enabled in your browser
<!DOCTYPE html>
<html>
<style>
body {
background: white;
}
#test:first-line {
color: white;
}
</style>

Keybase proof

I hereby claim:

  • I am hildjj on github.
  • I am hildjj (https://keybase.io/hildjj) on keybase.
  • I have a public key ASDmI7_8nLpfDyYA-HkxEk4fyb0n0jLhl3kCLHS1U28bCwo

To claim this, I am signing this object:

@hildjj
hildjj / enableAdiumDebug.sh
Last active September 24, 2019 19:48
On OSX, turn on Adium debug. You can also hold down Option while launching and select "debug". The select Adium/Debug Window to get the logs. Hat tip: https://twitter.com/hildjj/status/29394893693
defaults write com.adiumX.adiumX AIEnableDebugLogging -bool YES
@hildjj
hildjj / foo.coffee
Created September 13, 2016 19:04
Make coffeescript that has been compiled to javascript run as shebang
#!/usr/bin/env coffee
`#!/usr/bin/env node
`
# The extra newline in the backticks is crucial.
# It keeps the semicolon that coffee-script adds from messing up the shebang.
# now compile with "coffee -bcs --no-header < foo.coffee > bin/foo"
# -b: bare
# -c: compile
# -s: stdio
=;:..
=====:_.
.=========.
.+===========.
.+===========++=.
-+=++======+=====
..=======+===+=+++.
.:===========+=+=+=++
;==========++=+=+=+====;:..

Keybase proof

I hereby claim:

  • I am hildjj on github.
  • I am hildjj (https://keybase.io/hildjj) on keybase.
  • I have a public key whose fingerprint is 6BE0 0277 A430 7746 4A6D 6DE6 F60D 4C90 344F 5334

To claim this, I am signing this object:

@hildjj
hildjj / table.md
Last active December 17, 2015 03:39

``` boo bar ```

Syntax

@hildjj
hildjj / enum.h
Last active December 16, 2015 12:49
Generate enums and their string versions.
#ifndef ENUM_H
#define ENUM_H
#include <stddef.h>
#include <string.h>
#include <stdbool.h>
/* Entry points */
/* Define an enum, suitable for putting in a .h file */