I hereby claim:
- I am tdegrunt on github.
- I am tdegrunt (https://keybase.io/tdegrunt) on keybase.
- I have a public key whose fingerprint is 5180 2DB8 F518 577F DD76 B0E7 A426 AF12 D288 D777
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Leaflet</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.js"></script> | |
<script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script> | |
<script src="http://matchingnotes.com/javascripts/leaflet-google.js"></script> | |
</head> | |
<body> |
[ | |
{ | |
"button": "button1", | |
"count": 1, | |
"modifiers": ["super"], | |
"press_command": "drag_select", | |
"command": "goto_definition" | |
} | |
] |
#!/bin/bash | |
# | |
# GLASSHOLE.SH | |
# | |
# Find and kick Google Glass devices from your local wireless network. Requires | |
# 'beep', 'arp-scan', 'aircrack-ng' and a GNU/Linux host. Put on a BeagleBone | |
# black or Raspberry Pi. Plug in a good USB wireless NIC (like the TL-WN722N) | |
# and wear it, hide it in your workplace or your exhibition. | |
# | |
# Save as glasshole.sh, 'chmod +x glasshole.sh' and exec as follows: |
I hereby claim:
To claim this, I am signing this object:
package main | |
import "fmt" | |
func main() { | |
example := []string{"a", "b", "c", "d", "e", "f", "g", "h"} | |
i := 3 | |
example = example[:i+copy(example[i:], example[i+1:])] | |
fmt.Printf("example: %+v\n", example) |
# With JDK 8 installed: | |
plutil -replace JVMOptions.JVMVersion -string 1.8.\* /Applications/IntelliJ IDEA 14.app/Contents/Info.plist |
module FullErrorMessages | |
extend ActiveSupport::Concern | |
# includes errors on this model as well as any nested models | |
def all_error_messages | |
messages = self.errors.messages.dup | |
messages.each do |column, errors| | |
if self.respond_to?(:"#{column}_attributes=") && (resource = self.send(column)) | |
messages[column] = resource.errors.messages | |
end |
# A class-based template for jQuery plugins in Coffeescript | |
# | |
# $('.target').myPlugin({ paramA: 'not-foo' }); | |
# $('.target').myPlugin('myMethod', 'Hello, world'); | |
# | |
# Check out Alan Hogan's original jQuery plugin template: | |
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
# | |
(($, window) -> |
#!/bin/bash | |
for i in `seq -w 1 8`; | |
do | |
HandbrakeCLI --no-dvdnav --input DVD7.iso --title $i --output ~/Desktop/BB/S7/S07E$i.mkv | |
done |
var active = false; | |
function changeRefer(details) { | |
if (!active) return; | |
for (var i = 0; i < details.requestHeaders.length; ++i) { | |
if (details.requestHeaders[i].name === 'Referer') { | |
details.requestHeaders[i].value = 'http://www.google.com/'; | |
break; | |
} |