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 | |
function usage { | |
cat << EOM | |
Usage: $0 filename size [quality, default: 75] [count, default: 3] | |
For example: | |
$0 rad.jpg 1024 75 3 |
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
function getRandomInt(max) { | |
return Math.floor(Math.random() * Math.floor(max)); | |
} | |
function makePuzzle(rows = 5, columns = 5, max = 20) { | |
const find = getRandomInt(max); | |
console.log(`Find the number ${find}`); | |
const puzzle = []; | |
for (let i = 0; i < rows; i++) { | |
puzzle[i] = []; |
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 main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"strconv" | |
"strings" |
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 | |
# Array with expressions | |
expressions=("guuuuuuuuuurrrrrrrrrrrr" "cluck cluck cluck" "click" "tick tock") | |
voices=("Karen" "Diego" "Sara" "Thomas" "Victoria") | |
# Seed random generator | |
RANDOM=$$$(date +%s) | |
# Get random expression... |
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 | |
if [ "$#" -lt 1 ]; then | |
echo "Illegal number of parameters" | |
echo "Usage: $0 directory [border-size]" | |
exit | |
fi | |
if [ ! -z $2 ]; then | |
border=$2 | |
else | |
border=65 |
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
Moved to https://github.com/weberwithoneb/reddit-random-number-bot/ |
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="container"> | |
<div class="row"> | |
<div class="span10 offset1"> | |
<div class="social-icons"> | |
<h1>Horizontal Social Icon List</h1> | |
<ul> | |
<li><a href="https://twitter.com"><i class="icon-twitter"></i></a></li> | |
<li><a href="https://facebook.com"><i class="icon-facebook"></i></a></li> | |
<li><a href="https://instagram.com"><i class="icon-instagram"></i></a></li> | |
<li><a href="https://pinterest.com"><i class="icon-pinterest"></i></a></li> |
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
var xml2js = require("xml2js"); | |
var fs = require("fs"); | |
var path = require("path"); | |
if (process.argv.length < 2) | |
throw new Exception("Usage: node " + process.argv[1] + " filename [pretty]"); | |
var filename = process.argv[2]; | |
var pretty = (process.argv[3] && process.argv[3] == "pretty" ? true : false); | |
var outputDirectory = path.dirname(filename) || __dirname; |
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 | |
# Inspired by http://www.mikerubel.org/computers/rsync_snapshots/ | |
# Command Line Options | |
PREFIX=$1 | |
COUNT=$2 | |
SOURCE_DIRECTORY=$3 | |
DESTINATION_DIRECTORY=$4 | |
EXCLUDES=$5 |
NewerOlder