Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jjjjeeffff on github.
  • I am jefflong (https://keybase.io/jefflong) on keybase.
  • I have a public key ASCrqFgmVPh9cI670XNPcQc3x0zxOOO3MO9vR6qZoDY0rgo

To claim this, I am signing this object:

body {
background: #020710 !important;
color: #e6e6e6;
}
[lang] body {
font-family: "PragmataPro Liga";
}
a {
@jjjjeeffff
jjjjeeffff / dfs.py
Created August 7, 2016 07:42
Depth-first searching a 2D list
'''
Depth-first searching a 2D list
a | b | c | d
--------------------
e | f | g | h
--------------------
i | j | k | l
--------------------
m | n | o | p
/* Trie implementation in JavaScript
* @version 0.1
* Author - Jeff Long
*/
(function() {
/**
* Trie(value) Initialize a new tree with base node x.
*
* @param {String} value
### Keybase proof
I hereby claim:
* I am pssdbt on github.
* I am jeffff (https://keybase.io/jeffff) on keybase.
* I have a public key whose fingerprint is 3E72 B8EE 0B9C 1D51 427E 7CE2 6C81 874B 7C12 0946
To claim this, I am signing this object:
$('input:text, textarea').each(function(){
var $this = $(this);
$this.data('placeholder', $this.attr('placeholder'))
.focus(function(){$this.removeAttr('placeholder');})
.blur(function(){$this.attr('placeholder', $this.data('placeholder'));});
});
dfcee29 HEAD@{0}: checkout: moving from git-today-tmp to master
dfcee29 HEAD@{1}: master: updating HEAD
982c4b1 HEAD@{2}: 982c4b13b56a07c19c58db641e6e8c85be6194b5: updating HEAD
dfcee29 HEAD@{3}: checkout: moving from master to git-today-tmp
@jjjjeeffff
jjjjeeffff / gist:941770
Created April 26, 2011 04:00
delete facebook
#!/usr/bin/perl
use WWW::Mechanize;
use HTTP::Cookies;
use HTML::Parser;
use HTML::TagParser;
my $username = "PUT YOUR USERNAME HERE, escape the @ with \@, so me\@me.com";
print $username;
my $password = "PUT YOUR PASSWORD HERE";
print $password;
@jjjjeeffff
jjjjeeffff / gist:843246
Created February 25, 2011 01:16
Nuggets!
Ingredients
- 3 x 6oz boneless, skinless chicken breasts
- 1/4 cup oat bran
- 1/4 cup of wheat germ
- 1 Tbsp ground flaxseed
- 1/4 cup ground almonds
- 1/2 teaspoon sea salt
- 1/2 teaspoon ground pepper
- Garlic powder (pinch)
monster_id name monster_attrs monster_values
------------------------------------------------------------------------------------
1 Dracula alias,alive,home Drac-meister,No,Transylvania
2 Frankenstein alias,home Bolts,Laboratory
3 Jason Voorhees home Crystal Lake
4 Michael Myers alias Uncle Mike
5 The Blob alias Jelly Guts