Skip to content

Instantly share code, notes, and snippets.

# find directories in the path
find . -maxdepth 10 -type d
@ragingwind
ragingwind / package.json
Created July 7, 2017 20:52
tiddlywiki package.json
{
"name": "tiddlywiki",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"tiddlywiki": "^5.1.14"
},
"scripts": {
"build": "tiddlywiki wiki --init server",
let searchalias b = "bookmark"
let searchalias g = "google"
<!-- $theme: default -->
<!-- prerender: false -->
<!-- page_number: false -->
<!-- $width: 1980px -->
<!-- $height: 1080px -->
<link href='https://fonts.googleapis.com/css?family=Roboto:100' rel='stylesheet' type='text/css'>
<style>
p {
{
"lighthouseVersion": "1.6.0",
"generatedTime": "2017-04-21T08:43:38.178Z",
"initialUrl": "https://react-pwa-hello-world.firebaseapp.com/#/",
"url": "https://react-pwa-hello-world.firebaseapp.com/#/",
"audits": {
"is-on-https": {
"score": true,
"displayValue": "",
"rawValue": true,
@ragingwind
ragingwind / chpwd.fish
Last active April 3, 2017 03:18
fish shell
function chpwd --on-variable PWD --description 'handler of changing $PWD'
if not status --is-command-substitution ; and status --is-interactive
set cur_cwd (echo $PWD | sed -e "s|^$HOME|~|" -e 's|^/private||')
# set_color -o black
# printf (printf "%*s" (tput cols)) | sed -e "s/ /\─/g";
echo ""
printf "%s⇢ %sEntering %s%s%s …\n" (set_color $fish_color_cwd) (set_color normal) (set_color $fish_color_cwd) $cur_cwd (set_color normal)
ls
function git-proxy --description "gite <command> <arguments>"
set cmd $argv[1]
set --erase argv[1]
eval "git-"$cmd $argv
end
{
"lighthouseVersion": "1.5.2",
"generatedTime": "2017-03-02T10:56:56.719Z",
"initialUrl": "https://react-pwa-hello-world.firebaseapp.com/#/",
"url": "https://react-pwa-hello-world.firebaseapp.com/#/",
"audits": {
"is-on-https": {
"score": true,
"displayValue": "",
"rawValue": true,

How to Script: Yeoman Polymer Generator

How to Script: Polymer Offical Boilerplate