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
#!/usr/bin/env bash | |
# VARIABLES | |
################################## | |
weeks[1]='70:5' | |
weeks[2]='75:3' | |
weeks[3]='80:1' | |
weeks[4]='75:5' | |
weeks[5]='80:3' | |
weeks[6]='85: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
Delivered-To: jesse.butryn@joyent.com | |
Received: by 2002:ab0:30cb:0:0:0:0:0 with SMTP id c11csp2567588uam; | |
Fri, 5 Jul 2019 10:08:37 -0700 (PDT) | |
X-Received: by 2002:a1c:d10c:: with SMTP id i12mr4211806wmg.152.1562346517130; | |
Fri, 05 Jul 2019 10:08:37 -0700 (PDT) | |
ARC-Seal: i=3; a=rsa-sha256; t=1562346517; cv=pass; | |
d=google.com; s=arc-20160816; | |
b=NDulo+3LZSabFv7iJ7HtpCGatX8lFtYd3bLsF9/zFGmYB0osxz3NXUlKYMjO2yKiEt | |
dU9f9siaIw6y0NucDrIhc3QSDDX1QZGPxKxIhc7HwtTs76ZMIEHBJcqZ/Ik7ukXDuwKR | |
+sQRqZwKw0j+vmNr/76N+34qtMsxSLcHYu19bN3rkeHwyYcULrI/5gHwFsIAuUd8+m3D |
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
! 1 | |
: 1 | |
K 1 | |
O 1 | |
{ 1 | |
} 1 | |
7 2 | |
E 2 | |
G 2 | |
H 2 |
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
#!/usr/bin/env bash | |
# | |
#set -x | |
# | |
_date=$1 | |
wheelv2 () { | |
local d=$1 | |
local _year _month _day _hour _minute _second epoch today days_since_epoch seconds_since_epoch | |
local pattern='[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]Z' | |
if ! [[ "$d" =~ $pattern ]]; then |
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/sh | |
# comment | |
func () { | |
for ((i=1;i<10;i++)); do | |
: | |
done | |
} | |
printf '%s\n' Foo bar baz |
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/sh | |
# comment | |
func () { | |
for ((i=1;i<10;i++)); do | |
: | |
done | |
} | |
printf '%s\n' Foo bar baz |
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 <math.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) { | |
int n, x, i, s, f, l; | |
if ( argc < 2 ) { | |
printf("oi! Provide an argument!\n"); | |
return 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
$sdirs = @( | |
"C:\Users\jesse_b" | |
#"C:\Users\jesse_b\tmp" | |
) | |
$ddir = "Y:\jesse" | |
#$ddir = "C:\Users\jesse_b\tmp\test" | |
function fsync ($source,$target) { |
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
# This script will make directories for all files in a specified directory and move them into it. | |
# You must provide the input directory as the first argument and can optionally specify an output | |
# directory as the second argument. If no output directory is specified the input directory will | |
# be used. | |
$inDir = $args[0] | |
$outDir = $args[1] | |
$isInDir = Test-Path -LiteralPath $inDir -PathType Container |
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
#!/usr/bin/env bash | |
#set -x | |
trap ctrl_c INT | |
ctrl_c () { | |
rm -r "$_tmpdir" | |
exit 2 | |
} |