Skip to content

Instantly share code, notes, and snippets.

View remy-actual's full-sized avatar

Remy Schrader remy-actual

  • Southern California
View GitHub Profile
@remy-actual
remy-actual / TerminalVim.scpt
Created September 16, 2016 15:53 — forked from brablc/TerminalVim.scpt
Open Vim in Terminal (iTerm) from Finder - copied from http://thepugautomatic.com/2015/02/open-in-iterm-vim-from-finder/ and updated to open in the current terminal
on run {input, parameters}
set cmd to "vim -c startinsert"
if input is not in {} then
set myPath to POSIX path of input
set cmd to "vim " & quote & myPath & quote
end if
tell application "iTerm"
activate
set myTerm to (current terminal)
@remy-actual
remy-actual / README.md
Created June 11, 2016 18:05 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@remy-actual
remy-actual / functions.php
Last active March 28, 2016 04:28 — forked from cjkoepke/functions.php
Use enqueue to asynchronously load additional stylesheets with header links to add google fonts to your Wordpress theme.
<?php
//* Do NOT copy the opening PHP tag
//* Add Google Fonts to our header
add_action( 'wp_enqueue_scripts', 'ck_load_google_fonts' );
function ck_load_google_fonts() {
wp_enqueue_style( 'ck-google-fonts', '//fonts.googleapis.com/css?family=Open+Sans', array(), CHILD_THEME_VERSION );
}
@remy-actual
remy-actual / authors.yml
Last active September 6, 2015 20:28 — forked from ravasthi/_config.yml
Multiple authors on Jekyll
# located in _data/ subdirectory
hanzou:
name: Hanzou Hattori
display_name: Hanzou
gravatar: c66919cb194f96c696c1da0c47354a6a
email: hanzou@company.com
web: http://company.com
twitter: company
github: hhattori
remy:
@remy-actual
remy-actual / GIF-Screencast-OSX.md
Last active August 29, 2015 14:27 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@remy-actual
remy-actual / JekyllApps.js
Last active August 29, 2015 14:27 — forked from RainerAtSpirit/JekyllApps.js
Adding AngularJS search in Jekyll blog
/**
* Setup Module with `highlight` filter
*/
var JekyllApp = angular.module('JekyllApp', [], function ($routeProvider, $locationProvider) {
$locationProvider.html5Mode(false);
});
JekyllApp.filter('highlight', function () {
return function (text, filter) {

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@remy-actual
remy-actual / _godoc
Last active August 29, 2015 14:15 — forked from icholy/_godoc
#compdef godoc
typeset -A opt_args
local context state line
local pkgdir usrpkgdir
pkgdir="$GOROOT/src/pkg"
usrpkgdir="$GOPATH/src"
godoctmpl=~/.godoc_templates
@remy-actual
remy-actual / Dockerfile
Last active August 29, 2015 14:15 — forked from shijuvar/main.go
Deploying Go Web Apps With Docker source files -- https://medium.com/@shijuvar/deploying-go-web-apps-with-docker-1b7561b36f53
# golang image where workspace (GOPATH) configured at /go.
FROM golang:latest
# Copy the local package files to the container’s workspace.
ADD . /go/src/github.com/shijuvar/golang-docker
# Build the golang-docker command inside the container.
RUN go install github.com/shijuvar/golang-docker
# Run the golang-docker command when the container starts.

Zsh Tab Completion for Golang

This is pretty specific to my setup but the idea can be adapted to work with pretty much anything.

Go has a flag package which makes parsing command line arguments really easy.

package main