I hereby claim:
- I am cameronrye on github.
- I am cameronrye (https://keybase.io/cameronrye) on keybase.
- I have a public key ASBkw8omUmFPvsZfwjoaufWba5hOsfgMG4Qu1dB4fCtlPgo
To claim this, I am signing this object:
__..--''``---....___ _..._ __ | |
/// //_.-' .-/"; ` ``<._ ``.''_ `. / // / | |
///_.-' _..--.'_ \ `( ) ) // // | |
/ (_..-' // (< _ ;_..__ ; `' / /// | |
/ // // // `-._,_)' // / ``--...____..-' /// / // |
#!/usr/bin/env bash | |
# Create Disk Image | |
hdiutil create -o /tmp/BigSur.cdr -size 12000m -layout SPUD -fs HFS+J | |
# Mount it | |
hdiutil attach /tmp/BigSur.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
# Create macOS Big Sur Installer | |
sudo /Applications/Install\ macOS\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction |
_\/_ | _\/_ | |
/o\\ \ / //o\ | |
| .---. | | |
_|_______ -- / \ -- ______|__ | |
`~^~^~^~^~^~^~^~^~^~^~^~` |
// Position parameters | |
var tl = new TimelineLite(); | |
tl.to(".orange", 1, {x:750}) | |
//this just follows the first | |
.to(".green", 1, {x:750}) | |
//there is a one second gap between these two tweens | |
.to(".blue", 1, {x:750}, "+=1") | |
//this goes to two seconds in | |
.to(".red", 1, {x:750}, "2") |
public static bool EmailIsValid(string email) | |
{ | |
const string expresion = "\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*"; | |
return IsMatch(email, expresion) && Replace(email, expresion, string.Empty).Length == 0; | |
} |
function generateUUID() { | |
var d = new Date().getTime(); | |
if(window.performance && typeof window.performance.now === "function"){ | |
d += performance.now(); | |
} | |
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
var r = (d + Math.random()*16)%16 | 0; | |
d = Math.floor(d/16); | |
return (c=='x' ? r : (r&0x3|0x8)).toString(16); | |
}); |
I hereby claim:
To claim this, I am signing this object:
// http://xion.io/post/code/js-mailto-urls.html | |
function getMailtoUrl(to, subject, body) { | |
var args = []; | |
if (typeof subject !== 'undefined') { | |
args.push('subject=' + encodeURIComponent(subject)); | |
} | |
if (typeof body !== 'undefined') { | |
args.push('body=' + encodeURIComponent(body)) | |
} |