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
| @mixin bp($point) { | |
| @if $point==xl { | |
| @media (min-width: 85rem) { | |
| @content; | |
| } | |
| } | |
| @else if $point==l { | |
| @media (min-width: 70rem) { | |
| @content; | |
| } |
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
| console.log('Hello World 123') |
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 last_known_scroll_position = 0; | |
| var ticking = false; | |
| function doSomething(scroll_pos) { | |
| // do something with the scroll position | |
| } | |
| window.addEventListener('mousemove', function(e) { | |
| last_known_position = { |
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'); | |
| const path = require('path'); | |
| const parse = require('csv-parse/lib/sync'); | |
| const mkdirp = require('mkdirp'); | |
| const dataDir = './data/switchboard_conversations/'; | |
| const outputDir = './data/clean/'; | |
| let topics = fs.readdirSync(dataDir) | |
| let data = []; |
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
| gm montage -tile 28x19 -background "black" -geometry 300x300+2+2 *.jpg grid.jpg |
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
| cd ap ; wp core update ; wp plugin update --all; wp theme update --all ; wp plugin delete hello ; wp plugin delete akismet ; wp plugin install custom-post-type-ui --activate ; wp plugin install timber-library --activate ; wp plugin install woocommerce --activate ; cd .. ; cd aside ; wp core update ; wp plugin update --all; wp theme update --all ; wp plugin delete hello ; wp plugin delete akismet ; wp plugin install custom-post-type-ui --activate ; wp plugin install timber-library --activate ; cd .. ; cd zwicker ; wp core update ; wp plugin update --all; wp theme update --all ; wp plugin delete hello ; wp plugin delete akismet ; wp plugin install custom-post-type-ui --activate ; wp plugin install timber-library --activate ; cd .. ; cd humboldt ; wp core update ; wp plugin update --all; wp theme update --all ; wp plugin delete hello ; wp plugin delete akismet ; wp plugin install custom-post-type-ui --activate ; wp plugin install timber-library --activate ; cd .. ; cd particitype ; wp core update ; wp plugin upd |
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
| sudo apt-get install git | |
| sudo apt-get install curl | |
| curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
| sudo apt-get install -y nodejs | |
| cd Documents/ | |
| https://github.com/awesomephant/sineMachine.git |
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 gra = function(min, max) { | |
| return Math.random() * (max - min) + min; | |
| } | |
| const gri = function(min, max) { | |
| return Math.floor(Math.random() * (max - min + 1)) + min; | |
| } |
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 mapRange = function(n, range, targetRange) { | |
| var x = | |
| (n - range[0]) / (range[1] - range[0]) * (targetRange[1] - targetRange[0]) + | |
| targetRange[0]; | |
| return x; | |
| }; |
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 fs = require('fs') | |
| var casper = require('casper').create(); | |
| casper.options.waitTimeout = 10000; | |
| var games; | |
| var count = 0; | |
| var nextLink = 'http://www.chessgames.com/perl/chess.pl?tid=53788'; | |
| var parsePage = function () { | |
| var rows = document.querySelectorAll('table[cellpadding="3"]:nth-of-type(2) tr'); | |
| var games = []; |