What is the output of which python
?
If /usr/bin/python
then using the system python that comes with OSX. 😬
export const msg = "hello"; |
#!/bin/bash | |
set -eux | |
# Use this script to prune away everything but `foo/bar/somedir`, resulting with only `somedir` | |
# in the root. Using `--subdirectory-filter` is undesireable because it hoists all the contents | |
# of `somedir` into the root. | |
mkdir -p __github-migrate__ | |
mvplz="if [ -d $1 ]; then mv $1 __github-migrate__/; fi;" | |
git filter-branch -f --tree-filter "$mvplz" HEAD |
/* | |
Why is this needed? | |
> is `url.format` broken or am I? | |
> https://github.com/nodejs/help/issues/1176 | |
Would like to: | |
- extract this as a standalone lib | |
- support all spaces as options: | |
https://nodejs.org/api/url.html#url_url_strings_and_url_objects |
// This is an excessively over-engneered solution for when you forget | |
// `node.textContent` strips all child html :) | |
// to run: | |
// node --version # v9.2.0 | |
// npm install jsdom | |
// node recursive-char-generator.js | |
const jsdom = require("jsdom"); | |
const { JSDOM } = jsdom; |
#!/bin/sh | |
# Cause stefano said: You can get them even smaller with | |
# http://www.advancemame.it/comp-readme.html after crushing | |
# it operates on the deflate compression, not the PNG image data | |
git ls-files | grep \.png$ | while read img | |
do | |
echo -n "$img..." | |
size_old=$(stat -f%z "$img") |
#!/bin/sh | |
# | |
# git fixup - squash current changes into the last commit | |
# | |
# Stores the current the current head in 'doug/fixup'. | |
# | |
git branch -f doug/backup | |
git add -A |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
html { | |
background: url(http://i.imgur.com/vu9P5mN.jpg); | |
background-size: cover; | |
background-position: center; |
#!/bin/bash | |
# | |
# git fixup - squash current changes into the last commit | |
# | |
# Stores the current head in branch 'doug/fixup'. | |
# | |
git branch -f doug/fixup | |
git add -A |