Skip to content

Instantly share code, notes, and snippets.

View steveblue's full-sized avatar
🏠
Working from home

Stephen Belovarich steveblue

🏠
Working from home
View GitHub Profile
<div class=”button”>My Button</div>
async function getFirstPostTitle() {
 let posts = await getPosts();
 return posts[0].title;
}
function getFirstPostTitle() {
 return getPosts().then(function(posts) {
 return posts[0].title;
 });
}
@steveblue
steveblue / closure.lazy.conf
Last active December 2, 2017 00:10
A sample configuration for lazy loading with closure compiler
--compilation_level=ADVANCED_OPTIMIZATIONS
--language_out=ES5
--variable_renaming_report=closure/variable_renaming_report
--property_renaming_report=closure/property_renaming_report
--create_source_map=%outname%.map
--warning_level=QUIET
--dependency_mode=STRICT
--rewrite_polyfills=false
--module_resolution=node
@steveblue
steveblue / closure.lazy.conf
Created November 7, 2017 03:33
Example closure.conf used by lazyloading build found in angular-rollup CLI
--compilation_level=ADVANCED_OPTIMIZATIONS
--language_out=ES5
--variable_renaming_report=closure/variable_renaming_report
--property_renaming_report=closure/property_renaming_report
--create_source_map=%outname%.map
--warning_level=QUIET
--dependency_mode=STRICT
--rewrite_polyfills=false
--module_resolution=node
@steveblue
steveblue / closure.conf
Created November 7, 2017 03:33
Example closure conf for bundling an Angular 5.0.0 app
--compilation_level=ADVANCED_OPTIMIZATIONS
--language_out=ES5
--variable_renaming_report=closure/variable_renaming_report
--property_renaming_report=closure/property_renaming_report
--create_source_map=%outname%.map
--warning_level=QUIET
--dependency_mode=STRICT
--rewrite_polyfills=false
--module_resolution=NODE
@steveblue
steveblue / closure.lazy.conf
Last active November 2, 2017 23:38
closure conf for lazyloading AOT compiled code with @gregmagolan fork of Closure Compiler and @angular 5.0.0
--compilation_level=ADVANCED_OPTIMIZATIONS
--language_out=ES5
--variable_renaming_report=closure/variable_renaming_report
--property_renaming_report=closure/property_renaming_report
--create_source_map=%outname%.map
--warning_level=QUIET
--dependency_mode=STRICT
--rewrite_polyfills=false
--module_resolution=node
import { Component, OnInit, OnChanges, Input, Output, ChangeDetectorRef, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
import { AudioService } from '../../../services/audio.service';
import { DataChannel } from '../../../services/data-channel/data-channel.service';
import { UIController } from '../../../models/controller';
import { UIControl } from '../../../models/control';
import { Meter } from '../../../models/meter';
declare let d3: any;
@Component({
@steveblue
steveblue / style.css
Last active November 16, 2016 07:08
synth classic
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
canvas {
width: 100%;
height: 100%;
@steveblue
steveblue / style.css
Last active July 4, 2016 20:43
Terrain Example with Three.js
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
canvas {
width: 100%;
height: 100%;