Depending on your assigned system, read the README-ORACLE.md
or README-POSTGRES.md
file.
You might need to configure user accounts and permissions to accomplish these tasks.
function newEnv () { | |
function Foo () { | |
Write('Hello World'); | |
}; | |
var f = { | |
Foo: Foo | |
} | |
return f; |
function foo() { | |
function boom() { | |
Write('Boom'); | |
}; | |
function bar () { | |
function baz() { | |
boom(); // Fails here, "boom" can't be found | |
}; |
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-31-generic x86_64) | |
* Documentation: https://help.ubuntu.com | |
* Management: https://landscape.canonical.com | |
* Support: https://ubuntu.com/advantage | |
100 packages can be updated. | |
47 updates are security updates. | |
import Cocoa | |
func mergeSort(_ array: [Int]) -> [Int] { | |
guard array.count > 1 else { return array } | |
let middleIndex = array.count / 2 | |
let leftArray = mergeSort(Array(array[0..<middleIndex])) | |
let rightArray = mergeSort(Array(array[middleIndex..<array.count])) | |
return merge(leftPile: leftArray, rightPile: rightArray) | |
} |
function parse_url(str, component) { | |
// http://kevin.vanzonneveld.net | |
// + original by: Steven Levithan (http://blog.stevenlevithan.com) | |
// + reimplemented by: Brett Zamir (http://brett-zamir.me) | |
// + input by: Lorenzo Pisani | |
// + input by: Tony | |
// + improved by: Brett Zamir (http://brett-zamir.me) | |
// + improved by: Ben Ng (http://benng.me) | |
// % note: Based on http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js | |
// % note: blog post at http://blog.stevenlevithan.com/archives/parseuri |
I hereby claim:
To claim this, I am signing this object:
var MyView = Ribcage.View.extend({ | |
afterInit: function (opts) { | |
this.action = opts.action; | |
} | |
, beforeRender: function () { | |
this.button = new ButtonView({ | |
action: this.action | |
}); | |
} | |
, afterRender: function () { |
var Backbone = require('backbone') | |
, $ = require('jquery')(window) | |
, View | |
, myView | |
, testModel; | |
Backbone.$ = $; | |
testModel = new Backbone.Model(); |
, getComments: function () { | |
if(!this.comments) | |
throw new Error('You need to loadComments before you can get comments'); | |
return this.comments.map(function (comment) { | |
var obj = comment.toJSON(); | |
obj.relativeDate = relative(obj.updated); | |
return obj; | |
}); |