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
| $system-font-stack: font-family: system, -apple-system, ".SFNSDisplay-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif; |
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 objects = [ | |
| { | |
| a: 'a', | |
| b: 'b', | |
| c: 'c' | |
| },{ | |
| a: 'a', | |
| b: 'b', | |
| c: 'c' | |
| },{ |
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
| // Takes a property name and returns a function to be consumed by .sort | |
| const sorter = (prop) => (a, b) => { | |
| if (a[prop] < b[prop]) return -1; | |
| if (a[prop] > b[prop]) return 1; | |
| return 0; | |
| }; | |
| export default sorter; |
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
| admin account info" filetype:log | |
| !Host=*.* intext:enc_UserPassword=* ext:pcf | |
| "# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd | |
| "AutoCreate=TRUE password=*" | |
| "http://*:*@www” domainname | |
| "index of/" "ws_ftp.ini" "parent directory" | |
| "liveice configuration file" ext:cfg -site:sourceforge.net | |
| "parent directory" +proftpdpasswd | |
| Duclassified" -site:duware.com "DUware All Rights reserved" | |
| duclassmate" -site:duware.com |
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
| module.exports = function isMobileSafari() { | |
| return /(iPhone|iPod|iPad).+AppleWebKit/i.test(window.navigator.userAgent) && (function() { | |
| var iOSversion = window.navigator.userAgent.match(/OS (\d)/); | |
| return iOSversion && iOSversion.length>1 && parseInt(iOSversion[1]) < 10; | |
| })(); | |
| } |
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
| export default shuffle = (arr) => arr.sort((a, b) => arr.map(Math.random)[a] - arr.map(Math.random)[b]); |
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 req = function (url, cb) { | |
| var r = new XMLHttpRequest(); | |
| r.onreadystatechange = function () { | |
| if (r.readyState === 4 && r.statusCode === 200) { | |
| cb(JSON.parse(r.responseText)); | |
| } | |
| }; | |
| r.open("GET", url, true); | |
| r.send(); | |
| }; |
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
| alert('test'); |
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
| module.exports = function songOfTheWeek(hook) { | |
| var req = require("request-promise"); | |
| var Twitter = require('twitter'); | |
| var lastFmUrl = "http://ws.audioscrobbler.com/2.0/?method=user.getweeklytrackchart&user=himynameisdave9&api_key="+hook.env.sotw_lastfm+"&format=json"; | |
| var client = new Twitter({ | |
| consumer_key: hook.env.sotw_ckey, | |
| consumer_secret: hook.env.sotw_csecret, | |
| access_token_key: hook.env.sotw_atkey, | |
| access_token_secret: hook.env.sotw_atsecret | |
| }); |
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
| module.exports = function lastPlay(hook) { | |
| var req = require("request-promise"); | |
| var url = "http://ws.audioscrobbler.com/2.0/?method=user.getRecentTracks&user=himynameisdave9&api_key="+hook.env.lastsong_lastfm_key+"&format=json"; | |
| var stringify = function(data) { | |
| return JSON.stringify(data, true, 2); | |
| }; | |
| var blackList = ["Hello Internet", "This American Life", "Myke Hurley and CGP Grey"]; // items that we don't want showing up | |
| var isValidArtist = function (artist) { | |
| var validity = blackList.filter(function(dontAdd){ | |
| return artist.toLowerCase().indexOf(dontAdd.toLowerCase()) >= 0; |