I hereby claim:
- I am mkuklis on github.
- I am michal (https://keybase.io/michal) on keybase.
- I have the public key with fingerprint 4CC4 26DF 45A8 5858 B8ED A22C A674 443D E215 6841
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
description "mongodb container" | |
author "ququplay" | |
start on filesystem and started docker | |
stop on runlevel [!2345] | |
respawn | |
script | |
# Wait for docker to finish starting up first. | |
FILE=/var/run/docker.sock | |
while [ ! -e $FILE ] ; do | |
inotifywait -t 2 -e create $(dirname $FILE) |
var storage = { | |
init: function (success, error) { | |
window.requestFileSystem(PERSISTENT, 100 * 1024 * 1024, success, error); | |
}, | |
write: function (fileName, content, success, error) { | |
this.init(function (fs) { | |
fs.root.getFile(fileName, { create: true }, function (fileEntry) { | |
fileEntry.createWriter(function (fileWriter) { | |
fileWriter.onwriteend = callback; |
del jruby-core.jar | |
del ruby-stdlib.jar | |
rd /sq tmp_unpack | |
mkdir tmp_unpack | |
cd tmp_unpack | |
jar xf ../jruby-complete.jar | |
cd .. | |
mkdir jruby-core | |
move tmp_unpack/org jruby-core/ |
This example shows how to setup an environment running Rails 3 beta 3 under 1.9.2-head with a 'rails3' gem set. | |
∴ rvm update --head | |
# ((Open a new shell)) or do 'rvm reload' | |
# If you do not already have the ruby interpreter installed, install it: | |
∴ rvm install 1.9.2-head | |
# Switch to 1.9.2-head and gemset rails3, create if it doesn't exist. | |
∴ rvm --create use 1.9.2-head@rails3 |
// possible fix for http://github.com/jquery/jquery-datalink/issues/#issue/2 | |
// added | |
var _oldval = $.fn.val; | |
$.fn.val = function(value) { | |
var result = null; | |
if (value == undefined) { | |
result = _oldval.call(this); | |
} | |
else { |
$(function() { | |
// data comes from server | |
var data = {title: "header title", body: "body title", background_color: "#ffffff"}; | |
// setup site model and extend it with data from server | |
var Site = Backbone.Model.extend(data); | |
// header view | |
var HeaderView = Backbone.View.extend({ |
<cfscript> | |
// creates message ready for Twitter for given paramaters | |
function createTwitterMessage(name, amount, activity, technology, location) { | |
return "Help " & name & " collect " & amount & " for " & activity & " in " & location; | |
} | |
</cfscript> |
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<a href="http://twitter.com/share" class="twitter-share-button" | |
data-url="http://www.energyincommon.org" | |
data-text="<cfoutput>#createTwitterMessage("Frist Name Last Name", "$490.00", "Health Care", "Solar Home Systems", "Koni, Ghana")#</cfoutput>" | |
data-count="horizontal" data-via="energyincommon">Tweet</a> | |
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> | |
</body> |
<cffunction name="createMessage"> | |
<cfargument name="name" required="true" type="string"> | |
<cfargument name="amount" required="true" type="string"> | |
<cfargument name="activity" required="true" type="string"> | |
<cfargument name="technology" required="true" type="string"> | |
<cfargument name="location" required="true" type="string"> | |
<cfreturn "Help " & name & " collect " & amount & " for " & technology & " (" & activity & ") in " & location> | |
</cffunction> |