Skip to content

Instantly share code, notes, and snippets.

View igolden's full-sized avatar
🎯
Focusing

Ian Golden igolden

🎯
Focusing
View GitHub Profile
autoload -U zgitinit
zgitinit
prompt_grb_help () {
cat <<'EOF'
prompt grb
EOF
{
"name": "",
"version": "",
"description": "",
"main": [
""
],
"dependencies": {
""
},
title:
desc:
keywords:
assets:
dirname: assets
baseurl: /assets/
sources:
- _assets/javascripts
{
"name": "blue-leaf",
"version": "1.2.3",
"description": "Physics-like animations for pretty particles",
"main": [
"js/motion.js",
"sass/motion.scss"
],
"dependencies": {
"get-size": "~1.2.2",
{
"name": "scoot-cli",
"version": "0.0.0",
"homepage": "https://github.com/igolden/scoot-cli",
"authors": [
"Ian Golden <ian@iangolden.com>"
],
"license": "MIT",
"ignore": [
"**/.*",
{
"name": "scoot-cli",
"version": "0.0.0",
"homepage": "https://github.com/igolden/scoot-cli",
"authors": [
"Ian Golden <ian@iangolden.com>"
],
"license": "MIT",
"ignore": [
"**/.*",
/** @jsx React.DOM */
var SVGComponent = React.createClass({
render: function() {
return this.transferPropsTo(
<svg>{this.props.children}</svg>
);
}
});
<!-- smooth scroll -->
<script>
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
@igolden
igolden / example-plugin.php
Last active November 29, 2016 00:50
An example plugin.php
<?php
/*
Plugin Name: Example Plugin
Plugin URI: http://domain.com
Description: Describe plugin
Version: 1.0
*/
/*
* Find, search, and replace "artist" to rename the object. Double check that you didn't miss "artists"
*/
@igolden
igolden / dtran.zsh-theme
Last active January 26, 2017 04:04
zshell theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#