This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# (c) https://www.raspberrypi.org/forums/viewtopic.php?t=199775 | |
# Vidware_Downloads: My script philosophy is to keep things clean and simple. | |
# That's why my first step is to create 3 different folders to keep the main elements | |
# of my script completely separate from each other. Before anything can be built, | |
# we first have to download 6 files in the form of "stable release tarballs". | |
# This is the raw source code my script will use to build the 6 programs. | |
# We also need 4 GPU-related files from the Raspberry Pi Foundation's |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['gnd', 'models/todo', 'models/todoList', 'ctrls/todoListCtrl'], | |
function(Gnd, Todo, TodoList, TodoListCtrl){ | |
'use strict'; | |
// | |
// Create Local and Remote storages | |
// | |
var localStorage = new Gnd.Storage.Local(); | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(['gnd', 'models/todo'], function(Gnd, Todo) { | |
'use strict'; | |
return Gnd.Util.extend(Gnd.Base, function(_super) { | |
return { | |
constructor: function TodoListCtrl(collection) { | |
_super.constructor.call(this); | |
var _this = this; | |
this.set('collection', collection); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"> | |
<meta name="fragment" content="!"> | |
<title>Ground Application</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ES6 syntax | |
var target = yield fs.readlink("/path/to/symlink"); | |
// ES5 syntax | |
fs.readlink("/path/to/symlink")(function (err, target) { | |
if (err) throw err; | |
// do something with target | |
}); | |
// Promised based |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function interval(duration, fn){ | |
var _this = this | |
this.baseline = undefined | |
this.run = function(){ | |
if(_this.baseline === undefined){ | |
_this.baseline = new Date().getTime() | |
} | |
fn() | |
var end = new Date().getTime() |