Skip to content

Instantly share code, notes, and snippets.

View skalnik's full-sized avatar
🐈

Mike Skalnik skalnik

🐈
View GitHub Profile
@skalnik
skalnik / keybase.md
Created March 26, 2014 14:44
Keybase Verification

Keybase proof

I hereby claim:

  • I am skalnik on github.
  • I am skalnik (https://keybase.io/skalnik) on keybase.
  • I have a public key whose fingerprint is 34A7 A037 3127 C5D1 FA18 2700 AD97 5EEA B731 F234

To claim this, I am signing this object:

@skalnik
skalnik / iframe.html
Created October 7, 2014 20:21
Hidden IFrame Firefox Issue
<!DOCTYPE html>
<html>
<head>
<body>
<img id="img" style="max-width: 600px" src="https://render.githubusercontent.com/stormtroopocat.png">
<script type="text/javascript">
var element = document.getElementById('img');
var style = window.getComputedStyle(element);
console.log(style.getPropertyValue('max-width'));
</script>
@skalnik
skalnik / crash
Created November 12, 2014 04:37
Rebirth crash :(
Process: The Binding of Isaac Rebirth [20159]
Path: /Users/USER/Library/Application Support/Steam/*/The Binding of Isaac Rebirth.app/Contents/MacOS/The Binding of Isaac Rebirth
Identifier: com.Nicalis.The-Binding-of-Isaac-Rebirth
Version: v1.02 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: The Binding of Isaac Rebirth [20159]
User ID: 501
Date/Time: 2014-11-11 20:36:18.910 -0800
@skalnik
skalnik / list.md
Created November 12, 2014 20:34
Thanksgiving List
  • 13-15lb Fresh Turkey
@skalnik
skalnik / hand-crafted.svg
Created January 7, 2015 22:41
Artisanally hand crafted SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@skalnik
skalnik / 0. The Formation.md
Last active August 29, 2015 14:19
Lightning Badgers
  • We ask Harbin about the note about Orcs
  • Harbin directs us to some sick sounding castle
class Integer
def even?
self % 2 == 0
end
end
highest, num = 0, 0
(1..1_000_000).each { |i|
original, count = i, 0
def random_password
chars = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a
chars.sort_by { rand }[0,7].join
end
class CommentsController < ApplicationController
before_filter :find_post
before_filter :authenticate, :only => :destory
def new
@comment = @post.comments.build
end
def create
@comment = @post.comments.build(params[:comment])
#!/usr/bin/env ruby
require 'rubygems'
require 'net/http'
require 'uri'
require 'hpricot'
html = Hpricot Net::HTTP.get URI.parse('http://bash.org/?random')
quote = (html/"p.qt").first.inner_html