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
/// A game | |
pub mod guess_number { | |
/// Announces the game to be played | |
pub fn announce_game() { | |
println!(""); | |
println!("--------------------------"); | |
println!("| Guess A Number! |"); | |
println!("--------------------------"); | |
} |
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
#!/usr/local/bin/python3 | |
""" Squash Session Logs | |
This script removes yesterday's terminal generated session log files. | |
""" | |
import datetime | |
import glob | |
import os |
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
require "FileUtils" | |
# Update various dotfiles' symbolic links following directory change. | |
# Experimentation involving a deep dive into the Ruby 2.6.5 API. | |
module RemakeSymbolicLinks | |
USR = '/Users/tstewart' | |
CFG1 = 'zsh/configs' | |
CFG2 = 'zsh/configs/post' | |
TBOT = "#{USR}/Documents/Scripts/dotfiles/thoughtbot" |
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 | |
# strings together all of its arguments into a Java classpath, useful for | |
# grabbing all of the jars in a directory like so: | |
# classpath.sh lib/*.jar | |
# | |
usage(){ | |
echo "Usage: $0 /path/to/*.jar" | |
exit 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
setopt APPEND_HISTORY | |
unsetopt BG_NICE # do NOT nice bg commands | |
setopt CORRECT # command CORRECTION | |
setopt EXTENDED_HISTORY # puts timestamps in the history | |
setopt HIST_ALLOW_CLOBBER | |
setopt HIST_REDUCE_BLANKS | |
setopt INC_APPEND_HISTORY SHARE_HISTORY | |
setopt ALL_EXPORT | |
setopt MENUCOMPLETE |
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
# A Simple Implementation of the FizzBuzz problem | |
# by Tom Stewart <seasonedgeek> | |
# My curious Ruby experimentation | |
# Identify numbers that are | |
# for multiples of 3 | |
fz = Array.new | |
# for multiples of 5 | |
bz = Array.new | |
# for multiples of 3 & 5 |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #6f9; | |
background: linear-gradient(65deg, #6f9, #69f); | |
min-height: 100%; |
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 | |
# ------------------------------------------------------- | |
# A shell script that generates a MIT LICENSE file | |
# Written by: Tom Stewart | |
# Last updated on: 2013/15/08 | |
# ------------------------------------------------------- | |
# Verify the type of input and number of values | |
USAGE="USAGE: $0 copyright_year copyright_holders" |
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
package = "luaunit" | |
version = "1.3-1" | |
source = { | |
url = "http://luaforge.net/frs/download.php/2689/luaunit-v13.tar.gz", | |
file = "luaunit-v13.tar.gz", | |
dir = "luaunit_v13" | |
} | |
description = { | |
summary = "Luaunit is a testing framework for Lua, in the spirit of Extreme Programming", | |
detailed = [[ |
NewerOlder