192.168.3.38:8080
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
<form id="addForm" name="addForm" novalidate> | |
<label>Category:</label> | |
<select ng-model="expense.category" ng-options="category for category in categories"></select> | |
<label>Amount:</label> | |
<input required type="number" ng-model="expense.amount"></input> | |
<label>Description:</label> | |
<input type="text" ng-pattern="/^[a-zA-Z 0-9]*$/" ng-model="expense.description"></input> | |
<button ng-disabled="addForm.$pristine || addForm.$dirty && addForm.$invalid" ng-click="submit()">Submit</button> | |
</form> |
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
<meta name="mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> |
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
<link rel="apple-touch-icon" href="touch-icon-iphone.png"> | |
<link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png"> | |
<link rel="apple-touch-icon" sizes="120x120" href="touch-icon-iphone-retina.png"> | |
<link rel="apple-touch-icon" sizes="152x152" href="touch-icon-ipad-retina.png"> |
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
var makePromise = function (str) { | |
console.log(str) | |
return new Promise(function(resolve, reject){ | |
setTimeout(function(){resolve(str+1)}, 1000) | |
}) | |
} | |
makePromise(1).then(makePromise).then(makePromise).then(makePromise) |
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
app.filter('propsFilter', function() { | |
return function(items, props) { | |
var out = []; | |
if (angular.isArray(items)) { | |
items.forEach(function(item) { | |
var itemMatches = false; | |
var keys = Object.keys(props); | |
for (var i = 0; i < keys.length; i++) { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 ng-app="jwt-auth"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>JWT-AUTH</title> | |
</head> | |
<body> | |
<div ng-controller="AppController as vm"> | |
<button ng-click="vm.getResource()">Get protected resource</button> | |
<div ng-if="!vm.isLoaded"> |
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
<?php | |
use Illuminate\Http\Request; | |
class TestCase extends Illuminate\Foundation\Testing\TestCase { | |
use TestHelpersTrait; | |
/** | |
* Creates the application. | |
* |