Skip to content

Instantly share code, notes, and snippets.

body {
background-color: #F8F8F8;
font-family: 'Open Sans', sans-serif;
font-size: 14px;
font-weight: normal;
line-height: 1.2em;
margin: 15px;
}
#view-container {
library streams;
import 'dart:html';
import 'dart:async';
import 'dart:uri';
import 'dart:json' as JSON;
import 'package:js/js.dart' as js;
main() {
var inputs =
## Angular modules
http://ngmodules.org/
http://angular-ui.github.com/
http://angular-ui.github.com/bootstrap/
## Angular resources
John Lindquist Videos:
http://egghead.io
angular.module('app', []).directive('ngDebounce', function($timeout) {
return {
restrict: 'A',
require: 'ngModel',
priority: 99,
link: function(scope, elm, attr, ngModelCtrl) {
if (attr.type === 'radio' || attr.type === 'checkbox') return;
elm.unbind('input');
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
@garywu125
garywu125 / LifecycleCallbackTracker.ts
Last active September 21, 2015 08:38 — forked from jimthedev/LifecycleCallbackTracker.ts
Lifecycle callback tracking / logging for Angular 2
/**
* Have your component extend this class temporarily when you
* need lifecycle callback tracking / debugging. See second
* file for how to use this class in your component.
*/
class LifecycleCallbackTracker {
staticCallCounts: Object = {};
constructor() {
this.staticCallCounts = this.constructor['_callCounts'];
@garywu125
garywu125 / typescript.json
Created September 23, 2015 08:11 — forked from jimthedev/typescript.json
A few Visual Studio Code 0.8 Snippets for TypeScript and Angular 2
{
"New NG2 Component (Item)": {
"prefix": "ng2c",
"body": [
"import {Component, View, CORE_DIRECTIVES, FORM_DIRECTIVES} from 'angular2/angular2';",
"// import {ExampleListComponent} from '../example/example-list.component';",
"",
"@Component({",
" selector: '${1:dashed-name}',",
" properties: ['id']",
@garywu125
garywu125 / destructuring.js
Created September 27, 2015 07:19 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring.
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => {
return [1, 2, 3];
import {Injectable} from 'angular2/angular2';
@Injectable()
export class Spotify {
url: string;
constructor() {
this.url = 'https://api.spotify.com/v1/';
}
public searchArtist (value) {
@garywu125
garywu125 / golang-tls.md
Created October 26, 2016 07:11 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
    
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key