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 $messages = $('.commit-message code a.message'); | |
| var version = $messages | |
| .filter((i, mess) => mess.text.includes('Bump v')) | |
| .text() | |
| .split(' ')[1] | |
| .match(/[\d|\.]/g) | |
| .join(''); | |
| var sites = $messages | |
| .filter((i, message) => message.innerText.includes('impossibleventures/')) |
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
| /*~~ Setup ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ | |
| if (!process.env.token) { | |
| console.log('Error: Specify token in environment'); | |
| process.exit(1); | |
| } | |
| const Botkit = require('../lib/Botkit.js'); | |
| const port = process.env.PORT || 3000; | |
| const controller = Botkit.slackbot({ |
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
| # gulp-run.sh | |
| #!/bin/sh | |
| run() { | |
| gulp run --url="$1" | |
| } | |
| run $1 | |
| # alias gru="~/.oh-my-zsh/custom/gulp-run.sh" |
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 makeGalaxy(size) { | |
| var stars = []; | |
| for (var i = 0; i < size; i++) { | |
| stars.push(function(){alert("This is star #" + i);}); | |
| } | |
| return stars; | |
| }; | |
| var galaxy = makeGalaxy(20); |
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 reverse = function(str) { | |
| var ans = [], | |
| arr = str.split(''); | |
| arr.forEach(function(chr) { | |
| ans.unshift(chr); | |
| }); | |
| return ans.join(''); | |
| }; | |
| var palindromeCheck = function(str) { |
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 reverse = function(str) { | |
| var ans = [], | |
| arr = str.split(''); | |
| arr.forEach(function(chr) { | |
| ans.unshift(chr); | |
| }); | |
| return ans.join(''); | |
| }; |
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
| ; #1 | |
| (define (sequence low high step) | |
| (let ([next (+ low step)]) | |
| (if (>= high low) | |
| (cons low (sequence next high step)) | |
| null))) | |
| ; #2 | |
| (define (string-append-map xs suffix) | |
| (map (lambda (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 recruiters = document.getElementsByClassName('everyonelovesstackoverflow'); | |
| for (var i = recruiters.length - 1; 0 <= i; i--){ | |
| recruiters[i].remove(); | |
| } |
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
| for (var i = 0; recruiters.length > i; i++){ | |
| recruiters[i].remove(); | |
| } |
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
| // Block the ads for Stack Overflow careers, despite the | |
| // fact it got me my last job | |
| // #commentasconfession |