This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:document.getElementById('ctl00_contentBody_btnVote').addEventListener('click', function(e) { document.cookie = 'Lots2Give_Votes=; expires=Thu, 01-Jan-70 00:00:01 GMT;'; if(window.voteCount==undefined){ window.voteCount=1; document.getElementById('info').getElementsByTagName("p")[2].getElementsByTagName("span")[0].innerHTML="Vote <i>unlimited</i> times per day!<br><span id='superCount' style='font-weight: bold; font-size: 12px; color:blue;'>You have voted 1 time.</span>"; } else { window.voteCount++;} document.getElementById('ctl00_contentBody_lblVoteMessage').innerHTML="Voting...";document.getElementById('superCount').innerHTML="You have voted "+window.voteCount+" times. Nice!";}, false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab smarttab | |
set number | |
set nofoldenable | |
set showmatch | |
set hlsearch | |
set vb | |
set smartindent | |
set nocompatible | |
set backspace=indent,eol,start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
var $inputs = $("input"); //left as generic 'input' to acct for html5y types. | |
$inputs.each(function () { | |
if (this.value == '') { | |
this.value = sessionStorage["autosave-"+this.id]; | |
} | |
}) | |
$.fn.autosave = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i = setInterval(function () { | |
jQuery.ajax({ | |
url: 'http://twitter.com/users/show_for_profile.json?screen_name=dkordik', | |
complete: function (data) { | |
if (JSON.parse(data.responseText)["error"]==undefined) { | |
alert("IT'S BACK BABY!"); //brings focus to the twitter tab! | |
clearInterval(i); | |
location.reload(); | |
} else { | |
console.log("TWITTER? ", JSON.parse(data.responseText)["error"], " " + Date().toString()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#put your cookie in here. get it by putting javascript:alert(document.cookie) into the address bar | |
#when you're on turntable.fm and hit ctrl+c to copy it. | |
cookie='PASTE YOUR COOKIES IN HERE' | |
echo "Scraping..." | |
wget -4 -O OUTPUT --user-agent='Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/10.04 (lucid) Firefox/3.6.17' --no-cookies --header "Cookie: $cookie" -r -q http://turntable.fm/zzzapp | |
id=`grep -o block\;cursor\:pointer\;\}#.*\{background\:url\(\'https\:\/\/s3\.amazonaws\.com\/static\.turntable\.fm\/roommanager_assets\/props\/vote_btns\.png OUTPUT | awk -F '#' '{print $2}' | awk -F '{' '{print $1}'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.prototype.class = function () { | |
var match = this.constructor.toString().match("function " + /([A-Za-z]+)/.source) || this.constructor.toString().match("return new " + /([A-Za-z]+)/.source); | |
return match[1]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$jq("textarea").live("keyup",function () { $jq("#button1").click() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".binsold").each(function () {$(this).closest("td").css("backgroundColor","red")}); | |
$(".bidsold").each(function () {$(this).closest("td").css("backgroundColor","green")}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://pitchfork.com/festivals/chicago/2012/ | |
$(".appearance a").map(function () { return $(this).html().split("<")[0].trim() }) |
OlderNewer