This plugin got promoted to its own repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ifConditionHelper from 'myapp/helpers/if-condition'; | |
/** | |
* Logical AND Existence Conditional Block | |
* | |
* Usage: {{#if-all-exists field1 field2}}Either field1 or field2 is truthy{{/if-all-exists}} | |
* | |
* Executes the given block if all arguments are defined | |
*/ | |
export default function() { |
I hereby claim:
- I am slindberg on github.
- I am slindberg (https://keybase.io/slindberg) on keybase.
- I have a public key whose fingerprint is B8DE 7D75 20BF AE0F 4BBF 5301 B3D8 0328 DA30 4283
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
# global gitignore | |
excludesfile = /path/to/global/.gitignore | |
# this is the default, but make sure anyway :) | |
editor = /usr/bin/vim | |
# make pager use tabstops of 4 spaces instead of 8 (also don't wrap lines) | |
pager = /usr/bin/less -S -x4 | |
[user] | |
# information about you that will appear in commit history | |
name = <Your Display Name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set ls=2 " allways show status line | |
set number " show line numbers | |
set ruler " show line current line number/column | |
set showmatch " show matching brackets/braces/parantheses | |
set showcmd " display incomplete commands | |
set ttyfast " smoother changes | |
set tabstop=2 " numbers of spaces of tab character | |
set shiftwidth=2 " numbers of spaces to (auto)indent | |
set autoindent " auto indentation | |
set expandtab " use spaces instead of evil tabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# everything is in .bashrc | |
source ~/.bashrc | |
# personal bin folder trumps all | |
if [ -d ~/.bin ]; then | |
export PATH=:~/.bin:$PATH | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# run Homebrew profile scripts | |
for script in /usr/local/etc/profile.d/*.sh; do | |
if [ -r $script ]; then | |
. $script | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Pre-commit Hook | |
# | |
# Searches for black-listed strings in the commit and exits with an | |
# error if found, printing a diff of the location of the offending string | |
# | |
STATUS=0; | |
BLACKLIST="error_log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Convert all tables in a specified database to a different charset | |
# | |
# NOTE: this will NOT preserve data if it was stored improperly to begin with, | |
# e.g. UTF8 encoded strings saved as latin1 charset will get munged by this | |
# script when the table is converted. To preserve data you must export it, change | |
# the charset, then re-import. | |
# | |
# Command taken from: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Chart</title> | |
<style> | |
path { | |
stroke: #f00; | |
} | |
.line { | |
stroke: #0f0; | |
fill: none; |
OlderNewer