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
var loopThroughSongsAnd = function(doThis, interval, runMax) { | |
console.time('Looping through songs'); | |
var getIntOrDefault = function(variable, defaultValue) { | |
variable = parseInt(variable, 10); | |
if (isNaN(variable) || !variable) { | |
variable = getIntOrDefault(defaultValue, 0); | |
} | |
return variable; | |
} |
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
var mainPanel = document.querySelector("#mainContainer"); | |
var lastProcessedSong = ''; | |
mainPanel.scrollTop = 0; | |
function processSong() { | |
var topSong = document.querySelector('.song-table tr.song-row'); | |
console.log(topSong); | |
if (topSong.dataset.id !== lastProcessedSong) { | |
var nextSong = document.querySelector('.song-table tr.song-row:nth-child(3)'); | |
var topSongTitle = topSong.querySelector('[data-col=title] .column-content').textContent; | |
var nextSongTitle = nextSong.querySelector('[data-col=title] .column-content').textContent; |
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="//polygit.org/components/polymer/polymer.html" /> | |
<dom-module id="parallax-parent"> | |
<template> | |
<style> | |
:host { | |
position: relative; | |
overflow: hidden; | |
} | |
:host ::content [parallax-speed] { |
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="//polygit.org/components/polymer/polymer.html" /> | |
<dom-module id="dumb-telephone-input"> | |
<template> | |
<select id="area"></select> | |
<select id="prefix"></select> | |
<select id="phone"></select> | |
</template> | |
</dom-module> | |
<script> |
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
<script> | |
(function() { | |
var hslClock = Object.create(HTMLElement.prototype); | |
hslClock._hueTranslate = 0; | |
hslClock._saturationReverse = false; | |
hslClock._luminosityReverse= false; | |
hslClock._hideText = false; | |
Object.defineProperty(hslClock, 'hueTranslate', { |
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
WinWait, ahk_class Shell_TrayWnd, | |
IfWinNotActive, ahk_class Shell_TrayWnd, , WinActivate, ahk_class Shell_TrayWnd, | |
WinWaitActive, ahk_class Shell_TrayWnd, | |
Send, {APPSKEY}r | |
WinWait, Taskbar and Start Menu Properties, | |
IfWinNotActive, Taskbar and Start Menu Properties, , WinActivate, Taskbar and Start Menu Properties, | |
WinWaitActive, Taskbar and Start Menu Properties, | |
Send, {ALTDOWN}u{ALTUP}{ENTER} |
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
{ | |
"inputN": 41, | |
"values": [ | |
{ | |
"replaceWith": "my mom", | |
"replaceWithinWords": false, | |
"toReplace": "broki" | |
}, | |
{ | |
"replaceWith": "BPFC", |
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: (function() { | |
var plusOneWrapper = document.createElement('div'); | |
plusOneWrapper.style.left = '67px'; | |
plusOneWrapper.style.top = '10px'; | |
plusOneWrapper.style.position = 'fixed'; | |
plusOneWrapper.style.zIndex = 2147483647; | |
document.body.appendChild(plusOneWrapper); | |
var plusOne = document.createElement('div'); | |
plusOne.setAttribute('class', 'g-plusone'); | |
plusOne.setAttribute('data-size', 'tall'); |
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: (function() { | |
var url = encodeURIComponent(location.href); | |
var w = 47; | |
var h = 86; | |
var ifr = document.createElement('iframe'); | |
ifr.style.position = 'fixed'; | |
ifr.style.top = '10px'; | |
ifr.style.left = '10px'; | |
ifr.style.width = w + 'px'; | |
ifr.style.height = h + 'px'; |
NewerOlder