This file contains hidden or 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 | |
################################################################### | |
# Author: Dan Bechard | |
# Date: May 9, 2013 | |
# Desc: Displays status of all repositories in directory to allow | |
# the user to easily identify uncommited changes and pending | |
# commits on the remote. | |
# | |
# === CHANGELOGS === | |
# |
This file contains hidden or 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
CLR='\e[0m' | |
RED='\e[00;31m' | |
GREEN='\e[00;32m' | |
YELLOW='\e[00;33m' | |
BLUE='\e[00;34m' | |
PURPLE='\e[00;35m' | |
CYAN='\e[00;36m' | |
LIGHTGRAY='\e[00;37m' |
This file contains hidden or 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
#include <stdio.h> | |
#include <string.h> | |
// Cleanup: This is just for Rodney to see what's happening via printf() | |
void addCommas_debug(const char *num, char *buffer) | |
{ | |
char temp[100] = {0}; | |
int src = strlen(num) - 1; | |
int dst = 0; | |
This file contains hidden or 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
# GNU Screen - main configuration file | |
# All other .screenrc files will source this file to inherit settings. | |
# Author: Christian Wills - [email protected] | |
# Modified by: Dan Bechard [email protected] | |
# Allow bold colors - necessary for some reason | |
attrcolor b ".I" | |
# Tell screen how to set colors. AB = background, AF=foreground | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' |
This file contains hidden or 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
" maximize window on start | |
if has("gui_running") | |
"set lines=999 columns=999 | |
autocmd GUIEnter * simalt ~x | |
endif | |
set nocompatible " No vi compatibility | |
set autoindent " use autoindentation | |
set autoread " reload changed files automatically | |
set background=dark " colorscheme will assume dark background |
This file contains hidden or 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
" Maintainer: Henrique C. Alves ([email protected]) | |
" Version: 1.0 | |
" Last Change: September 25 2008 | |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset |
This file contains hidden or 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 | |
DEBUG=0 | |
VERBOSE=0 | |
CMDS="args|b|br|co|db|nb|pb|pr|rbm|web" | |
BRANCH_PREFIX="dlb-" | |
BRANCH_URL_SAFE="" | |
REPO=`git remote -v | grep -m 1 "(push)" | sed -E "s/.*github\.com[:/](.*)(\.git| ).*/\1/"` |
This file contains hidden or 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
bool is_anagram(const char *str1, const char *str2) | |
{ | |
int char_count[128] = { 0 }; | |
int len = strlen(str1); | |
for (int i = 0; i < len; i++) | |
{ | |
if (!str1[i] || !str2[i]) | |
return false; |
This file contains hidden or 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
# Complete the climbingLeaderboard function below. | |
def climbingLeaderboard(scores, alice) | |
# Store Alice's position after each game | |
results = [] | |
# Keep track of Alice's high score so far | |
alice_max = 0 | |
# For each of Alice's scores |
This file contains hidden or 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
<div class="post-summary"> | |
{{ with .Description }} | |
{{ (markdownify .) }} | |
{{ else }} | |
{{ ((delimit (findRE "(<.*?>(.|\n)*?</.*?>\\s*)+" .Content) "") | truncate (default 200 .Site.Params.summary_length) (default "" .Site.Params.text.truncated ) | replaceRE "&" "&" | safeHTML) }} | |
{{ end }} | |
</div> |
OlderNewer