- ssh into server
git clone
the repo- Configure
{nginx,apache,etc}
to forward requests to the fastboot server - Configure
{nginx,apache,etc}
to fallback to static assets if fastboot is not available
- ssh into server
var axios = require('axios') | |
var Firebase = require('firebase') | |
var nextPageToken = '' | |
// Get the YT Channel Playlist ID from here: | |
// https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername={YOUTUBE_CHANNEL_NAME}&key={YOUR_API_KEY} | |
function saveVideoData(token) { | |
var ROOT_URL = "https://www.googleapis.com/youtube/v3/playlistItems?pageToken=" + nextPageToken + "&part=snippet&playlistId=UUzQUP1qoWDoEbmsQxvdjxgQ&key={YOUR_API_KEY}&maxResults=50&?" | |
axios.get(ROOT_URL) | |
.then(function (response) { | |
data = response.data; |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/observable/fromEvent'; | |
import 'rxjs/add/operator/filter'; | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/operator/combineLatest'; | |
import 'rxjs/add/operator/distinctUntilChanged'; | |
import 'rxjs/add/operator/takeUntil'; | |
/** | |
* I am learning rxjs. The most complicated part is understanding the |
I'm using PHP 5.6.10, and trying to install the memcache extension. You can adapt this to other PHP versions and to other extensions, of course 😄
app.directive('datepickerLocaldate', ['$parse', function ($parse) { | |
var directive = { | |
restrict: 'A', | |
require: ['ngModel'], | |
link: link | |
}; | |
return directive; | |
function link(scope, element, attr, ctrls) { | |
var ngModelController = ctrls[0]; |
I changed this!
This is an HTML5 audio player that detects the user agent of your device/browser/OS and applies styling that matches the native audio player. The playlist responds to the width of your screen and features basic UI controls.
Feel free to fork this pen and add your own user agent styles for different browsers, devices and operating systems.
{ | |
"name": "my-app", | |
"version": "1.0.0", | |
"description": "My test app", | |
"main": "src/js/index.js", | |
"scripts": { | |
"jshint:dist": "jshint src/js/*.js", | |
"jshint": "npm run jshint:dist", | |
"jscs": "jscs src/*.js", | |
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |