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
git_branch='`git rev-parse --abbrev-ref HEAD 2> /dev/null | sed s/^/\ \|\ /`' | |
emojis=(🐶 🐺 🐱 🐭 🐹 🐰 🐸 🐯 🐨 🐻 🐷 🐮 🐵 🐼 🐧 🐍 🐢 🐙 🐠 🐳 🐬 🐥) | |
emoji='`echo ${emojis[$RANDOM % 22]}`' | |
PS1="\[\033[0;36m\]\T | \W$git_branch | $emoji > \[\e[0m\]" |
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
// Zlib - Node wrapper around the zlib compression library | |
var zlib = require('zlib'); | |
var gzip = zlib.createGzip(); | |
var gunzip = zlib.createGunzip(); | |
var fs = require('fs'); | |
var inStream1 = fs.createReadStream('input.txt'); | |
var outStream1 = fs.createWriteStream('tmp/output.txt.gz'); | |
// Compress input.txt using gzip |
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
PS1="\[\033[0;36m\]\u | \T | \W > \[\e[0m\]" | |
echo -e "\033[0;31m\n --------------------" | |
echo -e "\033[0;31m - \033[0;36mWelcome, Jeremy! \033[0;31m-" | |
echo -e "\033[0;31m --------------------\n" |
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
def is_palindrome(string_to_check) | |
if string_to_check.length == 0 | |
return false | |
end | |
the_start = 0 | |
the_end = string_to_check.length - 1 |
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
{ | |
"\UF729" = "moveToBeginningOfLine:"; | |
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; | |
"\UF72B" = "moveToEndOfLine:"; | |
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; | |
"^\UF729" = "moveToBeginningOfDocument:"; | |
"^\UF72B" = "moveToEndOfDocument:"; | |
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:"; | |
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:"; | |
} |
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#!/bin/bash | |
echo | |
echo "User Name: $(git config user.name)" | |
echo "Email: $(git config user.email)" | |
echo | |
git status . -sb | |
echo |
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
[alias] | |
st = status . -sb | |
ci = commit | |
co = checkout | |
br = branch | |
cb = rev-parse --abbrev-ref HEAD | |
conflicts = diff --name-only --diff-filter=U | |
recent = "!git for-each-ref --sort=-committerdate refs/heads/ | sed s/.*refs\\\\/heads\\\\/// | head" | |
[color] | |
ui = 1 |