This file contains hidden or 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
const MongoClient = require("mongodb").MongoClient; | |
const tracer = require("dd-trace").init(); | |
const StatsD = require("hot-shots"); | |
const dogstatsd = new StatsD(); | |
function getRandomInt(max, skews = 1) { | |
let result = max; | |
for (let i = 0; i < skews; i++) { |
This file contains hidden or 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
const MongoClient = require("mongodb").MongoClient; | |
const tracer = require("dd-trace").init(); | |
const StatsD = require("hot-shots"); | |
const dogstatsd = new StatsD(); | |
function getRandomInt(max, skews = 1) { | |
let result = max; | |
for (let i = 0; i < skews; i++) { |
This file contains hidden or 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
const fs = require("fs"); | |
// create a file writer that OVERWRITES the content of the text file | |
fs.writeFileSync("seed2.log", "") | |
function getRandomInt (max, skews = 1) { | |
let result = max; | |
for (let i = 0; i < skews; i++) { | |
result = Math.random() * result; |
This file contains hidden or 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
#!/usr/bin/env bash | |
FILEPATH="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js" | |
IFS='' read -r -d '' DARKMODE_CODE <<"EOF" | |
//darkmode BEGIN | |
document.addEventListener('DOMContentLoaded', function() { | |
const css = ` | |
body { background: #222; color: #e6e6e6; } | |
a { color: #949494; } |
This file contains hidden or 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 Item ({ name, id }) { | |
this.id = id; | |
this.name = name; | |
} | |
Item.prototype.getName = function () { | |
return this.name; | |
}; | |
function checkThis1 ({ getName }) { |
This file contains hidden or 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 setupDomElement () { | |
parentNode.innerHTML = '<dom-element></dom-element>'; | |
parentNode.find('dom-element').addEventListener('click', () => {console.log('blah')}); | |
} | |
setupDomElement(); | |
setupDomElement(); |
This file contains hidden or 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).ready(function() { | |
//link to T1 | |
$('#t1Logo').on('click', () =>{ | |
window.location.href='https://t1.mediamath.com/app/#monitor'; | |
}) | |
$('#title').on('click', () =>{ | |
window.location.href='/'; | |
}) | |
//connect the api to the ids | |
var currentDevice = ''; |
This file contains hidden or 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
status WAS "Done" BY alale DURING ("2017/04/01", "2017/06/30") ORDER BY resolved ASC |
This file contains hidden or 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
• What team are you in? | |
Campaigns | |
• Is your current release process CI/CD? | |
We have three deployables: Nemo (Perl), Adama (Perl) and Compass (front end). None are CI/CD | |
• (If so)What parts are CI/CD and what parts need to change? | |
- | |
• (If not)How does your team currently release code into production? |
This file contains hidden or 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 http = require('http'); | |
var url = require('url'); | |
var querystring = require('querystring'); | |
var stores = [191, 192, 193, 194, 195, 15173, 15171, 15174]; | |
var opts = url.parse('http://www.istocknow.com/live/live.php?type=7Plus&operator=simfree&color=Black&model=128GB&ajax=1&nocache=1476915136992&nobb=false¬arget=false&noradioshack=false&nostock=false'); | |
opts.headers = { | |
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36" | |
}; |
NewerOlder