I hereby claim:
- I am mikkpr on github.
- I am mikkpr (https://keybase.io/mikkpr) on keybase.
- I have a public key ASCtlvDpDxjE0vCAkzK-huYjlxx7ma8Wd7BkSpXMF7pLHgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* usage: | |
const dataSelector = state => { | |
return state.foo.bar; | |
} | |
connectState(dataSelector)((newValue, prevValue) => { | |
console.log('foo.bar changed from', prevValue, 'to', newValue); | |
}); | |
*/ |
photoswipe.js
and photoswipe.css
to the site's template assets. These already include the default skin assets and correct URLs.photoswipe
component and include it on pages where content area images should open in a lightbox#!/usr/bin/env python | |
"""Simple CLI beep tool""" | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import os | |
import sys | |
import time | |
import datetime |
#!/bin/bash | |
# | |
# A git hook script to find and fix trailing whitespace | |
# in your commits. Bypass it with the --no-verify option | |
# to git-commit | |
# | |
# usage: make a soft link to this file, e.g., ln -s ~/config/pre-commit.git.sh ~/some_project/.git/hooks/pre-commit | |
# detect platform |
# prerequisites: | |
# * installed gem 'voog_api' | |
# * ZSH | |
# * RBENV | |
# * existing ~/.voog file | |
# add to ~/.zshrc: | |
# returns the API token for the given Voog site | |
voog-token() { |
require 'voog_api' | |
if ARGV | |
if ARGV[0] | |
SITE = ARGV[0] | |
else | |
SITE = 'voog.local' | |
end | |
if ARGV[1] |