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
<html><body> | |
<h1>Jira Bookmarklet</h1> | |
<ul> | |
<li>Drag this link in to your bookmarks bar.</li> | |
<li>View a Jira issue. It can be on an individual issue page or when the story is focused in a modal.</li> | |
<li>Click the bookmarklet!</li> | |
<li>The bookmarklet will copy the story title and url to the clipboard as a markdown link.</li> | |
<li>Paste in to your PR.</li> |
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
# Remap alt-left and alt-right to forward/backward word skips. | |
# via @waltz, https://gist.github.com/waltz/8658549 | |
bindkey "^[^[[D" backward-word | |
bindkey "^[^[[C" forward-word |
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
#! /usr/bin/env bash | |
STREAM_KEY="" | |
echo Streaming: $1 | |
TWITCH="rtmp://live.twitch.tv/app/${STREAM_KEY}" | |
INSTA="rtmps://live-upload.instagram.com:443/rtmp/$STREAM_KEY" |
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
const findWord = rules => { | |
let word = rules.join('').replace(/\>/g, '').split('').filter((v, i, a) => a.indexOf(v) === i); | |
console.log('base characters:', word); | |
let done = false; | |
while (!done) { | |
done = true; | |
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
const possibleBalance = (program, targetValue) => { | |
program = program.split(''); | |
for (let i = program.length; i > 0; i--) { | |
let currentSum = 0; | |
currentSum = sum(program.slice(0, i)); | |
if (currentSum >= targetValue) { | |
return program.length - i; |
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
const HelloWorld = () => (<div>Hello world</div>); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
include stdlib | |
include apache | |
class { 'apache::mod::php': | |
user => 'vagrant', | |
group => 'vagrant', | |
} | |
apache::vhost { $fqdn : | |
priority => '20', |
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
path.js:8 | |
throw new TypeError('Path must be a string. Received ' + | |
^ | |
TypeError: Path must be a string. Received undefined |
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 gulp = require('gulp'); | |
var browserify = require('browserify'); | |
gulp.task('watchify', function() { | |
gulp.watch('client.js', function(file) { | |
browserify() | |
.add(file); | |
}); | |
}); |
NewerOlder