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
#!/bin/bash | |
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary \ | |
--allow-insecure-localhost \ | |
--user-data-dir=/tmp/canary-session \ | |
--disable-extensions \ | |
"$*" | |
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
Verifying my Blockstack ID is secured with the address 1K3AQb5zongRJsGS4qRK18ZbrFDLU8bz4b https://explorer.blockstack.org/address/1K3AQb5zongRJsGS4qRK18ZbrFDLU8bz4b |
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 mkdirp = require('mkdirp'); | |
const request = require('request-promise-native'); | |
const { SourceMapConsumer } = require('source-map'); | |
const usage = ` | |
usage: | |
node map-source.js <bundle js url> | |
` |
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
# ./docker-compose.yml | |
version: "3" | |
services: | |
app: | |
build: . | |
env_file: | |
- .env | |
ports: | |
- 3000:3000 # app | |
- 35729:35729 # live reload |
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 codeShipSetVars(vars) { | |
const $blocks = getBlocks(); | |
const keys = Object.keys(vars); | |
function getBlocks() { | |
return $('.form_block.environment_variable'); | |
} | |
function add() { | |
getBlocks().last().find('button.-good').click(); |
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() { [9/55928] | |
'use strict'; | |
function showConfirmBox(message, cb) { | |
var $modal = $('.js-modal-confirm'); | |
var $btnYes = $modal.find('.js-yes') | |
var $btnCancel = $modal.find('.js-cancel') | |
$modal.find('.js-message').text(message) |
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
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', '4.1.6' | |
gem 'rack' | |
gem 'pg', '0.17.1' | |
GEMFILE | |
system 'bundle' | |
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
(function(console){ | |
console.save = function(data, filename){ | |
if(!data) { | |
console.error('Console.save: No data') | |
return; | |
} | |
if(!filename) filename = 'console.json' |
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
find ./test -name "*-test.coffee"|xargs sed -i '' -e 's/ it / xit /g' |
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
ko.bindingHandlers.chosen = { | |
init: function(element, valueAccessor, allBindings, viewModel, bindingContext){ | |
var $element = $(element); | |
var options = ko.unwrap(valueAccessor()); | |
if (typeof options === 'object') | |
$element.chosen(options); | |
else | |
$element.chosen(); | |
NewerOlder