This file contains hidden or 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 timeStamp() { | |
// Create a date object with the current time | |
var now = new Date(); | |
// Create an array with the current month, and day | |
var date = [ now.getMonth() + 1, now.getDate(), now.getFullYear() ]; | |
// Return the formatted string | |
return date.join("/") + suffix; |
This file contains hidden or 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
.controller('JournalCtrl', function($scope, $http, $interval) { | |
$interval(function() { | |
$http.get('http://tiny-pizza-server.herokuapp.com/collections/alex-hackathon-journal1') | |
.success(function(response){ | |
$scope.messages = []; | |
for( var i = 0; i < response.length; i++ ) { | |
if(response[i].plantType && response[i].plantQuantity && response[i].plantNotes) { | |
$scope.messages.push(response[i]); |
This file contains hidden or 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
var myToDoModel = Backbone.Model.extend({ | |
urlRoot: 'http://tiny-pizza-server.herokuapp.com/collections/alex-todo-items', | |
defaults: { | |
todo: null, | |
completed: true | |
}, | |
idAttribute: '_id' | |
}); | |
I am very proud of the Backbone model I created above for two reasons. Firstly, this model |
This file contains hidden or 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
<Response> | |
<Say voice="alice">Hello!</Say> | |
</Response> |
This file contains hidden or 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
<?php | |
$name = $_REQUEST['SendDigits'] | |
// now greet the caller | |
header("content-type: text/xml"); | |
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; | |
?> | |
<Response> | |
<Say>Hello <?php echo $name ?>.</Say> | |
</Response> |
This file contains hidden or 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
var express = require('express'), | |
app = express(), | |
engines = require('consolidate'), | |
MongoClient = require('mongodb').MongoClient, | |
assert = require('assert') | |
app.engine('html', engines.nunjucks) | |
app.set('view engine', 'html') | |
app.set('views', __dirname + '/views') | |
This file contains hidden or 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
MongoClient.connect('mongodb://localhost:27017/test', function (err, db) { | |
var query = {'company_code': 'biotech'} | |
var cursor = db.collection('companies').find(query) | |
cursor.forEach( | |
function (doc) { | |
console.log(doc.name + ' is a company') | |
}, | |
function (err) { |
This file contains hidden or 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
Verifying my Blockstack ID is secured with the address 1FyKT5ZJdTTtmTURqD9dXTkbmRMVKqrDrL https://explorer.blockstack.org/address/1FyKT5ZJdTTtmTURqD9dXTkbmRMVKqrDrL |
This file contains hidden or 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
{ | |
"platformVersion": "11.4", | |
"platformName": "iOS", | |
"automationName": "XCUITest", | |
"deviceName": "iPhone 6", | |
"udid": "67CD9028-3F3B-48DE-B39B-5A391980214F", | |
"usePrebuiltWDA": true, | |
"useNewWDA": false, | |
"waitForQuiescence": false, | |
"maxInstances": 1, |
OlderNewer