We're excited to have you attend one of our workshops! Here's a JavaScript (re)fresher to help you get up-to-speed on some features of the language we'll be using.
JavaScript has always had var:
var name = 'Ryan'
# Configure the reverse-proxy on port 443 | |
server { | |
# general configs | |
keepalive_timeout 30; | |
listen 127.0.0.1:443 ssl; | |
server_name api.example.com; | |
# ssl configs | |
ssl_certificate /path/to/api.crt; | |
ssl_certificate_key /path/to/api.key; |
/* eslint-env node */ | |
var concat = require('gulp-concat'), | |
atImport = require('postcss-import'), | |
/* mqpacker = require('css-mqpacker'), */ | |
cssnano = require('cssnano'), | |
cssnext = require('postcss-cssnext'), | |
gulp = require('gulp'), | |
postcss = require('gulp-postcss'), | |
sourcemaps = require('gulp-sourcemaps'), |
var gulp = require('gulp'); | |
var tsProject = ts.createProject('tsconfig.json'); | |
var ts = require('gulp-typescript'); | |
gulp.task('build', function() { | |
return tsProject.src() | |
.pipe(ts(tsProject)) | |
.pipe(gulp.dest('dist')); | |
}); | |
import {provide} from 'angular2/core'; | |
import {SpyObject} from 'angular2/testing_internal'; | |
import {SearchService} from '../search.service'; | |
export class MockSearchService extends SpyObject { | |
getAllSpy; | |
getByIdSpy; | |
searchSpy; | |
saveSpy; |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 13, | |
// font family with optional fallbacks | |
fontFamily: '"Droid Sans Mono", Menlo, monospace', | |
// terminal cursor background color (hex) | |
cursorColor: '#cccccc', |
CREATE TRIGGER person_notify AFTER INSERT OR UPDATE OR DELETE ON income | |
FOR EACH ROW EXECUTE PROCEDURE notify_trigger( | |
'id', | |
'email', | |
'username' | |
); | |
CREATE TRIGGER income_notify AFTER INSERT OR UPDATE OR DELETE ON income | |
FOR EACH ROW EXECUTE PROCEDURE notify_trigger( | |
'id', |
/* this plugin fixes missing asset caching support in extract-text-webpack-plugin, preventing unnecessary rebuilds */ | |
const { CachedSource, ConcatSource } = require('webpack-sources'); | |
const loaderUtils = require('loader-utils'); | |
module.exports = class { | |
apply(compiler) { | |
compiler.plugin("compilation", function (compilation) { | |
compilation.plugin("optimize-assets", function (assets, callback) { | |
if (!assets) { |