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
// add a delay to webpack-dev-server | |
(function () { | |
var Server = require('webpack-dev-server/lib/Server'), | |
sendStats = Server.prototype._sendStats, | |
delay = 75; | |
Server.prototype._sendStats = function () { | |
var args = arguments, | |
self = this; |
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
document.body.querySelector('#image').src = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD//gA3T3B0aW1pemVkIGJ5IFBlZ2FzdXMgSW1hZ2luZyBDb3JwLCBodHRwOi8vd3d3LmpwZy5jb23/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAOEBaADASIAAhEBAxEB/8QAHQAAAgIDAQEBAAAAAAAAAAAABQYEBwIDCAEACf/EAEoQAAEDAwMCBAQFAgUDAQYCCwECAwQABREGEiEHMRMiQVEUMmFxCBUjgZFCoRYzUrHBJGLRQwkXJTRy4fDxU4KSGCY1Y0RUg7L/xAAcAQACAwEBAQEAAAAAAAAAAAAEBQIDBgEABwj/xAA0EQACAgICAgICAgIBBAAGAwEBAgADBBESIQUxEyIyQQYUI1FhFTNCcRYkNFKBoQdDkbH/2gAMAwEAAhEDEQA/AOV9O3PCS3Ic8NfsaJOTyJIAG8e4NCbjbmlOi5RVDb6hJqWiMtxpDrKs5HIHetVzM+dfCJNeUzJwjdhSu1SIS3mf0ynbjsT60NYA3gH/ADAaKbHZaAoHbs754orFbbQXKqATc3KekOvIQlrcUnk+9WDYytEEuOtnIR2Bwc0i2gq+KC1YOTVgxypuEXceXbW0xuqphcsn5eMQLih1+4vBwLCVn1Pag10UhiEvdIG5HrTFdZzSpKkpABz3pXfsL0qK86++AOSAVVm/IfnND4hJptbol2xxDaSSpQJX7V89IkNRlRQ2Txjdms4zH5datrI5zzXo8R1hC1JJ3dwBzSXIfSx+W1ZqB2GypKnZCeM471mplDSVpZWC |
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 csrfToken = $('[name="csrfToken"]').val(); | |
$.getJSON('https://www.linkedin.com/hp/modules/ozfeed/promo/endorsements/fetch?offset=0&count=500', function (response) { | |
var endorsements = response.endorsements; | |
console.log('found ' + endorsements.length + ' endorsements'); | |
function endorse (callback) { | |
var endorsement = endorsements.shift(); |
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
String.prototype.rgb = function (r, g, b) { | |
return "\x1b[38;2;" + r + ";" + g + ";" + b + "m" + this + "\x1b[0m"; | |
}; |
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 () { | |
function TaskWorker ($config) { | |
this.worker = this.createWorker(); | |
this.worker.addEventListener('message', this.onWorkerMessage.bind(this)); | |
this.tasks = []; | |
this.onTaskComplete = $config.onTaskComplete; | |
this.lastTaskTimestamp = null; | |
} | |
TaskWorker.prototype = { | |
functionToObjectURL: function (func) { |
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 commands = []; | |
commands.push('mkdir "' + TralbumData.current.title + '"'); | |
commands.push('cd "' + TralbumData.current.title + '"'); | |
TralbumData.trackinfo.forEach(function (track, index) { | |
if (track.file) { | |
commands.push('curl -o "' + track.title + '.mp3" -L "' + track.file['mp3-128'] + '"'); | |
} |
IE11 on Win10 https://modernievirt.blob.core.windows.net/vhd/VMBuild_20141027.2/Parallels/IE11/Mac/IE11.Win10.For.Mac.Parallels.zip
IE11 on Win8.1 https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/Parallels/IE11/Mac/IE11.Win8.1.For.Mac.Parallels.zip
IE11 on Win7 https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/Parallels/IE11/Mac/IE11.Win7.For.Mac.Parallels.zip
IE10 on Win8
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
INSERT INTO usd_exchange_rates (`date`,`EUR`,`GBP`) VALUES | |
("1975-01-02 00:00:00", 0.7633, 0.4281),("1975-01-03 00:00:00", 0.7585, 0.4271),("1975-01-06 00:00:00", 0.7524, 0.4252),("1975-01-07 00:00:00", 0.751, 0.4246),("1975-01-08 00:00:00", 0.7554, 0.4258),("1975-01-09 00:00:00", 0.7551, 0.4256),("1975-01-10 00:00:00", 0.7534, 0.4251),("1975-01-13 00:00:00", 0.754, 0.4248),("1975-01-14 00:00:00", 0.7588, 0.4261),("1975-01-15 00:00:00", 0.7562, 0.4254),("1975-01-16 00:00:00", 0.7546, 0.4249),("1975-01-17 00:00:00", 0.7537, 0.4249),("1975-01-20 00:00:00", 0.7503, 0.4244),("1975-01-21 00:00:00", 0.7487, 0.4231),("1975-01-22 00:00:00", 0.7416, 0.4183),("1975-01-23 00:00:00", 0.7404, 0.42),("1975-01-24 00:00:00", 0.7384, 0.4196),("1975-01-27 00:00:00", 0.7324, 0.4168),("1975-01-28 00:00:00", 0.7357, 0.4197),("1975-01-29 00:00:00", 0.7429, 0.4218),("1975-01-30 00:00:00", 0.7418, 0.421),("1975-01-31 00:00:00", 0.7423, 0.42),("1975-02-03 00:00:00", 0.745, 0.4211),("1975-02-04 00:00:00", 0.7518, 0.4221),("1975-02-05 |