I want to rename Elephant, as there's already a company out there called 'Elephant Backup' and I'd like to avoid confusion.
It is done. Meet storelet
I want to rename Elephant, as there's already a company out there called 'Elephant Backup' and I'd like to avoid confusion.
It is done. Meet storelet
Copyright (c) 2012, Mark Embling | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
- Neither the name of Mark Embling nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission. |
cd path/to/project/public | |
php -S localhost:8080 index.php |
# 'git status' alias function | |
function gs { | |
git status $args | |
} |
require 'mqtt/client' | |
mqtt = MQTT::Client.new('10.25.2.4') | |
loop do | |
mqtt.connect do |c| | |
c.publish('test/foo/bar','this is a test message #{Time.now}') | |
puts "published a msg" | |
/* | |
* Jsgauge 0.4.1 | |
* http://code.google.com/p/jsgauge/ | |
* | |
* Licensed under the MIT license: | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* Tweaked by Mark Embling (http://markembling.info/) to use requestAnimationFrame instead of setTimeout. | |
*/ | |
/*jslint browser: true */ |
irb(main):004:0> require 'json' | |
=> true | |
irb(main):005:0> data = { "timestamp" => Time.new } | |
=> {"timestamp"=>2011-07-13 13:55:29 +0100} | |
irb(main):006:0> json = data.to_json | |
=> "{\"timestamp\":\"2011-07-13 13:55:29 +0100\"}" | |
irb(main):007:0> deserialised = JSON.parse json | |
=> {"timestamp"=>"2011-07-13 13:55:29 +0100"} | |
irb(main):008:0> deserialised["timestamp"].class | |
=> String |
// This would (does) work in proper browsers. | |
jQuery(createElement('form')) | |
.attr({'method':'post','action':/*some url*/}) | |
.submit(); | |
// IE needs it to be attached to the document somewhere first before submission will work. :( | |
var f = jQuery(createElement('form')) | |
.attr({'method':'post','action':/*some url*/}); | |
jQuery('body').append(f); | |
f.submit(); |
[Bb]in | |
[Oo]bj | |
*.suo | |
TestResult.xml | |
*.sln.cache | |
*.[Rr]e[Ss]harper.user | |
_ReSharper* | |
*.csproj.user |
# Start the MongoDB server running (foreground) | |
function Start-MongoD { | |
$dropBox = (Resolve-Path '~\Documents\My Dropbox').Path | |
$mongoConfig = "$dropBox\Software\MongoDB\mongo.conf" | |
$mongoData = "$dropBox\Software\MongoDB\data\" | |
& $dropBox\Software\MongoDB\bin\mongod.exe --config "'$mongoConfig'" --dbpath "'$mongoData'" | |
} | |
# Start the MongoDB client app |