This is the script we use at yerdle to print labels from our Rails backend to our Zebra ZP450 printer.
See this blog post for the whole story.
<?php | |
$password = "chemicals1"; | |
$expected = "{SSHA512}w/lHn2LXfNletbfyLVYutBFqUjGPzhmptyleVlehUZSZdylZCt/sDmvkhTBV1Ln4f6rzXTdM6eOGr3LX7FgGCF5/fsbs0vVq"; | |
function generate_postfix_ssha512_hash($password, $salt = false) { | |
$hash_algo = "{SSHA512}"; | |
$salt_length = 8; | |
// generate a random salt if one isn't provided |
This is the script we use at yerdle to print labels from our Rails backend to our Zebra ZP450 printer.
See this blog post for the whole story.
A quick overview of the node.js streams interface with basic examples.
This is based on @brycebaril's presentation, Node.js Streams2 Demystified
Streams are a first-class construct in Node.js for handling data.
Think of them as as lazy evaluation applied to data.
This is an anchor-linked version of the excellent, amazing original opus magnum by Michael Tandy.
Counterexample: Royal Opera House, Covent Garden, London, WC2E 9DD, United Kingdom.
Counterexample: 1A Egmont Road, Middlesbrough, TS4 2HT
@keyframes dropball { | |
0% { | |
bottom: 200px; | |
} | |
2% { | |
bottom: 198.89046144485474px; | |
left: 2.000002145767212px; | |
} | |
4% { | |
bottom: 197.5577425956726px; |
@keyframes dropball { | |
0% { | |
bottom: 200px; | |
} | |
2% { | |
bottom: 198.89046144485474px; | |
left: 2.000002145767212px; | |
} | |
4% { | |
bottom: 197.5577425956726px; |
As an avid Xbox Gamer and always wanting to push myself, I decided to recreate the Xbox One Achievement Toast. ou can see a video example of it here - https://www.youtube.com/watch?v=CgwkK2uUk1c&feature=youtu.be
All I need to do now, is play this to make it complete - (Achievement Notification Sound) http://majornelson.com/2011/10/07/download-the-achievement-unlocked-sound/
Here is an example of the old 360 one - http://codepen.io/jesseGlacken/details/uwtsx/
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/htpasswd; |
// Extend the default Number object with a formatMoney() method: | |
// usage: someVar.formatMoney(symbol, decimalPlaces, thousandsSeparator, decimalSeparator) | |
// defaults: ('£', 2, ',', '.') | |
Number.prototype.formatMoney = function(symbol, places, thousand, decimal) { | |
symbol = symbol !== undefined ? symbol : '£'; | |
places = !isNaN(places = Math.abs(places)) ? places : 2; | |
thousand = thousand || ','; | |
decimal = decimal || '.'; | |
var number = this, |
A demonstration of using border-radius, linear-gradient, and box-shadow to create a convincing 3D sphere from a 2D box.
Forked from Rob Glazebrook's Pen Blue Marble.