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 | |
COLOR_NC='\033[0m' # No Color | |
COLOR_GRAY='\033[1;30m' | |
COLOR_RED='\033[0;31m' | |
COLOR_LCYAN='\033[1;36m' | |
COLOR_YELLOW='\033[1;33m' | |
COLOR_LGREEN='\033[1;32m' | |
logv() { |
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 | |
COLOR_NC='\033[0m' # No Color | |
COLOR_LGREEN='\033[1;32m' | |
COLOR_GRAY='\033[1;30m' | |
COLOR_LGRAY='\033[0;37m' | |
COLOR_RED='\033[0;31m' | |
logv() { | |
[[ -z "$VERBOSE" ]] && return 0; |
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 | |
COLOR_NC='\033[0m' # No Color | |
COLOR_LIGHT_GREEN='\033[1;32m' | |
COLOR_GRAY='\033[1;30m' | |
COLOR_RED='\033[0;31m' | |
logv() { | |
[[ ! -z "$VERBOSE" ]] && >&2 echo -e "${COLOR_GRAY}$*${COLOR_NC}" | |
} |
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
[user] | |
name = Gordon | |
email = gburgett@**** | |
signingkey = ****** | |
[core] | |
excludesfile = /Users/gburgett/.gitignore_global | |
editor = /usr/bin/vim | |
[difftool "sourcetree"] | |
cmd = /usr/local/bin/bcomp \"$LOCAL\" \"$REMOTE\" | |
path = -ro |
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 | |
COLOR_NC='\033[0m' # No Color | |
COLOR_LIGHT_GREEN='\033[1;32m' | |
usage() { | |
echo "$0 <files glob> | |
expand tabs to spaces in given files, printing names of files that would change. | |
" && \ | |
grep " .)\ #" $0; exit 0; |
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
[secrets] | |
patterns = .*(TOKEN|token|SECRET|secret|KEY|key|PASS|pass)\\S*\\s*=\\s*\\w+\\s*$ | |
patterns = .*(TOKEN|token|SECRET|secret|KEY|key|PASS|pass)\\S*\\s*=\\s*[[:punct:]]\\S+[[:punct:]]\\s* | |
allowed = .+=\\*+(\\s.*)?$ | |
allowed = .+=\\s*process\\.env\\.\\S+ | |
allowed = .+=\\s*[[:punct:]]test_.+$ | |
allowed = `.+=\\s*\\${.+$ |
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
/* | |
Package broadcast implements a broadcasting channel. The broadcaster | |
creates or wraps a channel which when written to is replicated to all attached | |
receivers. | |
example: | |
ticker := time.NewTicker(1 * time.Millisecond) | |
b, ch := broadcast.NewBroadcaster() | |
go func() { |
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
package com.SimplyTrackable.logviewer.utils | |
import scala.concurrent.Future | |
import rx.Observable | |
import rx.Observer | |
import scala.concurrent.Promise | |
import scala.collection.generic.CanBuildFrom | |
import scala.concurrent.ExecutionContext | |
object ObservableExtensions { |
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
/* vi:ts=2 sw=2 expandtab | |
* | |
* JsMockito v1.0.4 | |
* http://github.com/chrisleishman/jsmockito | |
* | |
* Mockito port to JavaScript | |
* | |
* Copyright (c) 2009 Chris Leishman | |
* Licensed under the BSD license | |
*/ |
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
package propel.groovy.utils | |
import lombok.Functions; | |
/** | |
* This groovy class is an example of how to interface between the groovy 'closure' concept | |
* and Lombok's Functions. It provides a groovy way to call into JPropel's LINQ functions. | |
* Right now this is just a proof of concept, as I use more of the LINQ functions I'll add | |
* them to this gist. | |
* @author gordon burgett | |
*/ |