Skip to content

Instantly share code, notes, and snippets.

View waltz's full-sized avatar
🥑
avocado is good

CJ Bryan waltz

🥑
avocado is good
View GitHub Profile
@waltz
waltz / index.html
Last active March 4, 2024 19:37
jira copy name bookmarklet
<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>
@waltz
waltz / stream.sh
Created May 8, 2020 05:10
FFMPEG to Twitch
#! /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"
@waltz
waltz / timwords.js
Last active December 30, 2019 21:06
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;
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;
const HelloWorld = () => (<div>Hello world</div>);
@waltz
waltz / error.sh
Last active December 14, 2015 19:18
path.js:8
throw new TypeError('Path must be a string. Received ' +
^
TypeError: Path must be a string. Received undefined
var gulp = require('gulp');
var browserify = require('browserify');
gulp.task('watchify', function() {
gulp.watch('client.js', function(file) {
browserify()
.add(file);
});
});
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
require 'shoulda-matchers'
Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
with.library :rails
end
end
$ 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