Skip to content

Instantly share code, notes, and snippets.

View dandean's full-sized avatar
🌧️
It's raining.

Dan Dean dandean

🌧️
It's raining.
View GitHub Profile
function deleteNextTweet() {
var deleteButton = $('.js-stream-item > div:not(.retweeted) a.js-action-del')[0];
if (deleteButton) {
deleteButton.click();
setTimeout(confirmDeleteTweet, 1000);
} else {
console.log('no more tweets');
}
}
@dandean
dandean / gist:9076274
Created February 18, 2014 18:03
Noooooooooo!
if (foo)
bar()
else
baz()
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>hello-backbonejs</title>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.js"></script>
<script src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.6.0/underscore.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone.js"></script>
var x = 5, y = 10;
console.log(`${x} + ${y} = ${ x + y}`);
// 5 + 10 = 15

Keybase proof

I hereby claim:

  • I am dandean on github.
  • I am dandean (https://keybase.io/dandean) on keybase.
  • I have a public key whose fingerprint is A6CD 88BF 7F39 C9A9 9C44 C8F9 F8B9 E337 82CB B1A8

To claim this, I am signing this object:

[11:55:12] <@dandean> Found an incorrect variable declaration in that last PR. Caught it in canary!
[11:55:15] <@oscar> mimi, its an experience
[11:55:22] <@dandean> Fix is going to canary right now.
[11:55:25] <tOm> WRITE A REGRESSION TEST
[11:55:49] <@oscar> YEAH! If the tests didnt catch it, your tests gotta be better
[11:56:35] <@dandean> you are correct sirs
[11:56:53] <@oscar> tom and I are sitting our desks chanting "tests tests tests tests"
[11:56:54] <@dandean> it's in a controller template helper – those can be a bit annoying to test.
[11:57:01] <whilp> the noise is deafening
[11:57:07] <whilp> all of alder is yelling "TESTS"
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@dandean
dandean / link.sh
Last active August 29, 2015 14:04
Link a module to itself to get around relative require hell.
# make node_modules/
node_modules/: package.json
npm install
@dandean
dandean / spaces.js
Last active August 29, 2015 14:09
The theory that tab characters grant us the ability to have self-determined indent widths breaks down whenever a file contains content which is meant to be vertically aligned.
var foo = "foo",
bar = "bar";