View BashPrintColor.sh
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
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' |
View addcommas.c
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
#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; | |
View .screenrc-main-example
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
# GNU Screen - main configuration file | |
# All other .screenrc files will source this file to inherit settings. | |
# Author: Christian Wills - cwills.sys@gmail.com | |
# Modified by: Dan Bechard dbechrd@gmail.com | |
# 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' |
View .vimrc
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
" 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 |
View mustang.vim
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
" Maintainer: Henrique C. Alves (hcarvalhoalves@gmail.com) | |
" Version: 1.0 | |
" Last Change: September 25 2008 | |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset |
View anagram.c
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
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; |
View alice_score.rb
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
# 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 |
View hugo-post-summary.html
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
<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> |
View vocab.txt
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
nadir | |
ossification | |
acme | |
zenith | |
selcouth | |
solivagant | |
assay | |
anosmic | |
fomented | |
tacit |
View spec_trace.rb
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
#---------------------------------------------------------------------------------------- | |
# Example Usage (RSpec) | |
#---------------------------------------------------------------------------------------- | |
# Define a trace object. Syntax is as follows: | |
# | |
# let (:trace) { | |
# SpecTrace.new({ | |
# Module::ClassA => { exclude: [:method_to_ignore, :another_method_to_ignore] } | |
# Module::ClassB => { include: [:method_to_trace, :another_method_to_trace] }, | |
# }) |
OlderNewer