Skip to content

Instantly share code, notes, and snippets.

@pemby
pemby / index.html
Created February 24, 2020 23:45
math.js | basic usage math.js | basic usage // source https://jsbin.com/kuvogar/18
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="math.js | basic usage">
<title>math.js | basic usage</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/3.1.4/math.min.js"></script>
<style id="jsbin-css">
form {
overflow: hidden;
}
@pemby
pemby / WGU.CC.6.26.18.csv
Created June 26, 2018 23:49
WGU CC 6.26.18
CCN Course Number Course Description CUs Term
ACCT 2311 VYC1 Principles of Accounting 4 9
ACCT 2311 VYC1 Principles of Accounting 4 9
ACCT 2311 VYC1 Principles of Accounting 4 7
ACCT 2311 VYC1 Principles of Accounting 4 3
ACCT 3310 UFC1 Managerial Accounting 3 7
ACCT 3310 UFC1 Managerial Accounting 3 7
ACCT 3310 UFC1 Managerial Accounting 3 9
ACCT 3310 UFC1 Managerial Accounting 3 9
ACCT 3310 UFC1 Managerial Accounting 3 7
@REM File to be deleted
SET FileToDelete="%AppData%\Mozilla\Firefox\Desktop Background.bmp"
@Try to delete the file only if it exists
IF EXIST %FileToDelete% del /F %FileToDelete%
fsutil file createnew "%AppData%\Mozilla\Firefox\Desktop Background.bmp" 0
attrib +r "%AppData%\Mozilla\Firefox\Desktop Background.bmp"
@pemby
pemby / shell
Last active August 29, 2015 13:56
acuweather_scraper.sh
#!/bin/bash
FULLURL="http://www.accuweather.com/en/us/portland-or/97204/weather-forecast/350473"
#local path for files
LOCATION="/Users/admini/accuFiles"
# temp/trap - attempting to be as safe as possible while parsing html in bash
TMPDIR=${TMPDIR:-/tmp}
temporary_dir=$(mktemp -d "$TMPDIR/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX") || { echo "ERROR creating a temporary file" >&2; exit 1; }
#!/bin/bash
# Current Weather Icon
FULLURL="http://www.accuweather.com/en/us/portland-or/97204/weather-forecast/350473"
# Trap/Temp Dir to attempt to be safe while parsing html with bash
TMPDIR=${TMPDIR:-/tmp}
temporary_dir=$(mktemp -d "$TMPDIR/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX") || { echo "ERROR creating a temporary file" >&2; exit 1; }
trap 'rm -rf "$temporary_dir"' 0
trap 'exit 2' 1 2 3 15
#!/bin/bash
# Current Temp
FULLURL="http://www.accuweather.com/en/us/portland-or/97204/weather-forecast/350473"
# Trap/Temp Dir to attempt to be safe while parsing html with bash
TMPDIR=${TMPDIR:-/tmp}
temporary_dir=$(mktemp -d "$TMPDIR/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX") || { echo "ERROR creating a temporary file" >&2; exit 1; }
trap 'rm -rf "$temporary_dir"' 0
trap 'exit 2' 1 2 3 15