Skip to content

Instantly share code, notes, and snippets.

View nuclearsandwich's full-sized avatar

Steven! Ragnarök nuclearsandwich

View GitHub Profile
$('span.mini-icon-delete-note').click()
// Delete some GitHub notifications using the Firebug console 10 at a time.
@nuclearsandwich
nuclearsandwich / sample.md
Created September 2, 2012 08:53
Lists in markdown and rendered markdown
  • This

    • list
    • has
      • no paragraphs
  • This

    • list
  • Has

@nuclearsandwich
nuclearsandwich / gists.md
Created September 13, 2012 11:22
I fucking love gists.

Guise!

You guise!

Gists!

The following has no hard line breaks:

Synth wolf quinoa, pinterest portland cliche mustache. Pork belly art party before they sold out pickled etsy artisan. Twee four loko food truck pickled. Post-ironic master cleanse pickled raw denim, freegan whatever cliche ethical 8-bit lo-fi. Twee selvage you probably haven't heard of them, williamsburg lo-fi brunch swag wayfarers. Godard quinoa vinyl, cliche pinterest vice terry richardson bushwick gastropub hoodie retro. Ennui chambray banh mi cardigan flexitarian.

The following paragraph has hard line breaks:

Synth wolf quinoa, pinterest portland cliche mustache. Pork belly art party before they sold out pickled etsy artisan. Twee four loko food truck pickled.

@nuclearsandwich
nuclearsandwich / big_files.bash
Created September 28, 2012 23:27
Find large files in your git repos
#!/bin/bash
# big_files.bash
## Iterate over commit history and print big files and folders.
## usage: big_files.bash
# git-rev-list - print each revision in the HEAD reference
git rev-list --reverse HEAD \
| while read rev; do

Mirah Questions

How do I do build class constants in Mirah? Will the compiler optimize them to values or do they stay methods

class TestConstants {
  public static string FOO = "foo";
}
@nuclearsandwich
nuclearsandwich / destructuring_hash.rb
Created October 30, 2012 01:00
I was a little bit sad that this didn't work.
config[:token], config[:secret] = { :token => "tk", :secret => "sc" }
@nuclearsandwich
nuclearsandwich / .bash_profile
Created November 14, 2012 11:16
My hackaround solution to everyone else failing at new things
# snipped
# Seriously Fuck Python 2
if [ -d ~/.fuckpy2 ]; then
# path-me! is equivalent to export PATH="$1":"$PATH"
path-me! "$HOME/.fuckpy2"
function python-is-py2 {
rm ~/.fuckpy2/python
ln -s /usr/bin/python2 ~/.fuckpy2/python
18:13:19 Jonas | Yo ho ma bro ho
18:14:18 nuclearsandwich | /unfriend
18:14:34 Jonas | If that were an option then we'd have done it a long time ago.
@nuclearsandwich
nuclearsandwich / gist:4107512
Created November 18, 2012 21:11
Chromium build failure on Archlinux x64
content/common/cc_messages.cc: In static member function ‘static bool IPC::ParamTraits<WebKit::WebFilterOperation>::Read(const IPC::Message*, PickleIterator*, IPC::ParamTraits<WebKit::WebFilterOperation>::param_type*)’:
content/common/cc_messages.cc:83:6: error: ‘IPC::ParamTraits<WebKit::WebFilterOperation>::param_type’ has no member named ‘setType’
content/common/cc_messages.cc:97:12: error: ‘IPC::ParamTraits<WebKit::WebFilterOperation>::param_type’ has no member named ‘setAmount’
content/common/cc_messages.cc:105:12: error: ‘IPC::ParamTraits<WebKit::WebFilterOperation>::param_type’ has no member named ‘setDropShadowOffset’
content/common/cc_messages.cc:106:12: error: ‘IPC::ParamTraits<WebKit::WebFilterOperation>::param_type’ has no member named ‘setAmount’
content/common/cc_messages.cc:107:12: error: ‘IPC::ParamTraits<WebKit::WebFilterOperation>::param_type’ has no member named ‘setDropShadowColor’
content/common/cc_messages.cc:118:12: error: ‘IPC::ParamTraits<WebKit::WebFilterOperation>::param_type’ has no