Copy/paste these into Safari and it will add it to Alfred
alfred://customsearch/Search%20npm%20for%20%27%7Bquery%7D%27/npm/utf8/nospace/https%3A%2F%2Fwww.npmjs.com%2Fsearch%3Fq%3D%7Bquery%7D
# When using RN in combination with Cocoapods, a lot of | |
# things are broken. These are the fixes we had to append | |
# to our Podfile when upgrading to [email protected]. | |
# | |
# WARNING: Check those line numbers when you're on a different version! | |
def change_lines_in_file(file_path, &change) | |
print "Fixing #{file_path}...\n" | |
contents = [] |
I hereby claim:
To claim this, I am signing this object:
const jsdom = require("jsdom"); | |
jsdom.env({ | |
html: ` | |
<!DOCTYPE html> | |
<body> | |
<script> | |
var script = document.createElement("script"); | |
script.setAttribute('type', 'application/javascript'); | |
script.textContent = "ran = true;"; |
const jsdom = require("jsdom"); | |
jsdom.env({ | |
html: ` | |
<!DOCTYPE html> | |
<body> | |
<script> | |
var script = document.createElement("script"); | |
script.setAttribute('type', 'application/javascript'); | |
script.textContent = "ran = true;"; |
// npm install phantom | |
// npm install jasmine-node | |
// ./node_modules/jasmine-node/bin/jasmine-node phantom-and-jasmine.spec.js | |
var phantom = require('phantom'); | |
describe("A suite", function() { | |
it("should open google.com", function(done) { | |
phantom.create(function(ph) { | |
ph.createPage(function(page) { |
@media only screen and (max-width: 399px) { | |
.row { padding: 8px; } | |
.col { padding: 8px; } | |
.s-1 { width: 8.33333%; } | |
.s-2 { width: 16.66667%; } | |
.s-3 { width: 25%; } | |
.s-4 { width: 33.33333%; } | |
.s-5 { width: 41.66667%; } | |
.s-6 { width: 50%; } |
require 'rubygems' | |
if ENV['CODECLIMATE_REPO_TOKEN'] | |
require 'codeclimate-test-reporter' | |
CodeClimate::TestReporter.start | |
else | |
require 'simplecov' unless File.exists? '.zeus.sock' | |
end | |
ENV['RAILS_ENV'] = 'test' |
// This is not some kind of polyfill! It's just to prevent old browsers from failing horribly | |
var fallback = function() {}; | |
var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'profile', 'profileEnd', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn', 'table']; | |
if(typeof console === 'undefined') { | |
var console = {}; | |
} | |
for(var i in methods) { |
#!/usr/bin/env zsh | |
# | |
# Turns ISO-files and VIDEO_TS-directories from $encode_path into decent H264-encoded mp4's (audio/subtitle-tracks are included). | |
# | |
# Requirements: | |
# - ZSH | |
# - HandBrakeCLI | |
encode_path=~/Desktop/Encode | |
handbrake_path=/usr/bin/HandBrakeCLI |