giphy [mp4 gif url]
- Copy and run the following:
curl -o /usr/local/bin/giphy https://gist.githubusercontent.com/tmilewski/f65dd9b6bfcf5c2a39742ce1e515a481/raw/3baa4e5ecdc5d07bd3948d406360e90d8223aa90/giphy; chmod +x /usr/local/bin/giphy
import { SearchIndex } from './search-index.ts' | |
import { SearchService } from './search-service.ts' | |
// ========================================================== | |
// Index Contents Shape | |
// ========================================================== | |
export interface Collab { | |
id: string | |
name: string |
git config --global alias.gl 'pull --prune' | |
git config --global alias.gp 'push origin HEAD' | |
git config --global alias.lg 'log --graph --pretty=format:"%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset" --abbrev-commit --date=relative' | |
git config --global alias.gd 'diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r' | |
git config --global alias.c 'commit' | |
git config --global alias.ca 'commit -a' | |
git config --global alias.co 'checkout' | |
git config --global alias.cb 'copy-branch-name' | |
git config --global alias.b 'branch' | |
git config --global alias.s 'status -sb' |
// https://github.com/krux/postscribe | |
<!-- Main form wrapper, required for styling the form --> | |
<div class="webform"> | |
<!-- Empty div (must have a unique ID), into which the form will be loaded --> | |
<div id="formstack-bridal-appointment"></div> | |
<script type="text/javascript">// <![CDATA[ | |
// Only run the code below when jQuery says the document is ready | |
(function($) { | |
// Process the form using postscribe: | |
// 1. Must reference the unique ID of the div above |
#!/usr/bin/env ruby | |
# > TOKEN=[PERSONAL ACCESS TOKEN] ruby backup.rb | |
require 'octokit' | |
directory = './backups' | |
client = Octokit::Client.new( | |
access_token: ENV['TOKEN'], |
$ brew install https://raw.github.com/paulnicholson/homebrew/master/Library/Formula/stud.rb
$ curl https://gist.githubusercontent.com/paulnicholson/2050941/raw/7e4d2178e3733bed18fdfe737277c3cb72241d39/powssl > ~/bin/powssl
$ chmod +x ~/bin/powssl
$ powssl
# Install stud | |
brew install https://raw.github.com/paulnicholson/homebrew/master/Library/Formula/stud.rb | |
# Download and install the powssl script | |
curl https://gist.githubusercontent.com/paulnicholson/2050941/raw/3ea59efe8c7e9013c265313045a9fdda5c653963/powssl > ~/bin/powssl | |
chmod +x ~/bin/powssl | |
# Add ~/bin to your PATH | |
export PATH="$HOME/bin:$PATH" |
#!/bin/sh | |
# Licence: MIT | |
# Created by tomykaira, 2011-10-25 | |
if [ $# -ne 1 ]; then | |
echo "Give me your new project name (only)" | |
exit 1 | |
fi |
var sendParam = function(p) { | |
// sends a GET request, no jQuery or wrapper needed | |
(new Image).src = '/my_route?p='+encodeURIComponent(p); | |
} |
class window.Countdown | |
constructor: (ends_at, custom_callbacks) -> | |
now = new Date | |
end = new Date(Number(ends_at) * 1000) | |
default_callbacks = | |
tick: -> | |
complete: -> | |
@callbacks = $.extend(default_callbacks, custom_callbacks) |