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
<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 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 | |
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 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 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 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 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 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 HelloWorld = () => (<div>Hello world</div>); |
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
path.js:8 | |
throw new TypeError('Path must be a string. Received ' + | |
^ | |
TypeError: Path must be a string. Received undefined |
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 gulp = require('gulp'); | |
var browserify = require('browserify'); | |
gulp.task('watchify', function() { | |
gulp.watch('client.js', function(file) { | |
browserify() | |
.add(file); | |
}); | |
}); |
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
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } |
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
require 'shoulda-matchers' | |
Shoulda::Matchers.configure do |config| | |
config.integrate do |with| | |
with.test_framework :rspec | |
with.library :rails | |
end | |
end |
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
$ bundle exec rspec | |
WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.8.0 | |
/Users/minifast/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/shoulda-matchers-3.0.1/lib/shoulda/matchers/integrations/libraries/rails.rb:20:in `integrate_with': uninitialized constant ActiveSupport::TestCase (NameError) | |
from /Users/minifast/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/shoulda-matchers-3.0.1/lib/shoulda/matchers/integrations/configuration.rb:48:in `block (2 levels) in apply' | |
from /Users/minifast/.rbenv/versions/2.2.2/lib/ruby/2.2.0/set.rb:283:in `each_key' | |
from /Users/minifast/.rbenv/versions/2.2.2/lib/ruby/2.2.0/set.rb:283:in `each' | |
from /Users/minifast/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/shoulda-matchers-3.0.1/lib/shoulda/matchers/integrations/configuration.rb:48:in `block in apply' | |
from /Users/minifast/.rbenv/versions/2.2.2/lib/ruby/2.2.0/set.rb:283:in `each_key' | |
from /Users/minifast/.rbenv/versions/2.2.2/lib/ruby/2.2.0/set.rb:283:in `each' | |
from /Users/minifas |
NewerOlder