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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Maps GPS Coordinate to Adobe Bridge - kebman.com</title> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
#form { | |
background-color: MistyRose; | |
padding: 0.5em; | |
} |
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 python2 | |
import os | |
import hashlib | |
import datetime | |
# Warning: Recursive program. If ran or set from root, it will list ALL THE FILES on the drive. Hit Ctrl+C if you get bored. | |
path = "." | |
# UX (and OS X) spesific path names | |
homedir = os.path.expanduser('~') |
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
/* | |
* Small Node.js script that gets BTC/USD quotes from www.bitstamp.net | |
* from https://www.bitstamp.net/api/v2/ticker/BTCUSD/ | |
*/ | |
const https = require('https'); // because the URL is https | |
const quoteOptions = { | |
host: 'www.bitstamp.net', | |
port: 443, // because https default |
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
/* | |
* Equation for finding the Primitive Root Modulo n: | |
* cn^n mod p | |
* for n = 1 to n = p-1 | |
* This program is a little heavy on the counting, though it seems to work with the current set of Prime Numbers... | |
*/ | |
// a few prime numbers for testing: | |
const primeNumbers = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281]; | |
// console.log(primeNumbers.length); // check size |
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 | |
# ff.sh ver 1.0 | |
# Manipulate Files and Folders with Bash… | |
# minimal check of correct amount of input arguments | |
if [[ $# -eq 0 ]] ; then | |
echo "Use a file with a valid file extension, then do:" | |
echo "bash ff.sh [testfile.ext]" | |
exit 0 | |
fi |
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
export PATH=/usr/local/mysql/bin:$PATH | |
export PS1="\u \\$ \[$(tput sgr0)\]" | |
alias nj='cd /Users/username/Dropbox/node' | |
alias home='cd ~' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Standard Deviation</title> | |
<meta charset="utf-8"> | |
<style type="text/css"></style> | |
</head> | |
<body> | |
<header> | |
<h1>Standard Deviation</h1> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Movable Element</title> | |
<meta charset="utf-8"> | |
<style type="text/css"> | |
#testBox { | |
/* define shape and colour */ | |
width: 50px; height: 50px; | |
background-color: #ddd; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Example of using callbacks in JavaScript</title> | |
<meta charset="utf-8" /> | |
<style type="text/css"></style> | |
</head> | |
<body> | |
<header> | |
<h1>Simulation of delayed callback functionality</h1> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Tic Toc</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<header> | |
<h1>Tic Toc</h1> | |
</header> |