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
import React, { Component } from 'react'; | |
/** | |
* Main Application entry point. | |
*/ | |
class App extends Component { | |
render() { | |
var place = 'yo'; | |
return ( | |
<div> |
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
## A script to make a series of pngs that uses alpha transparency into an animated gif. | |
## Gifs only support 100% transparent or a 100% opaque pixel colors so imagemagick will convert your 80% transparent color into 100%. | |
## Requires: Imagemagick | |
# Make all transparency into white pixels. | |
mogrify -background white -alpha remove *.png | |
# Convert the white pixels back to transparency. | |
for f in *.png | |
do |
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
import { Injectable } from '@angular/core'; | |
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; | |
export interface AlertConfig { | |
description?: string; | |
okButtonLabel?: string; | |
cancelButtonLabel?: string; | |
okCallback?: Function; | |
displayLoading?: boolean; |
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
const CONFIG = {} | |
// Application colors. | |
CONFIG.colors = { | |
// Base | |
transparent: 'transparent', | |
}; | |
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
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; | |
class ExampleForMike { | |
private userStream$: BehaviorSubject<any>; | |
public getStream():BehaviorSubject<> { | |
return this.userStream$; |
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
import {ViewChild, ViewChildren, Component, AfterViewChecked, OnDestroy, OnInit, ElementRef, Inject, Output, EventEmitter, HostListener, HostBinding} from "@angular/core"; | |
import { DOCUMENT } from '@angular/platform-browser'; | |
import { RafManager} from '../lib/animations/raf-manager'; | |
declare var cordova: any; | |
/** | |
* A very simple sticky component. Supports stacking multiple. | |
* |
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
const mathf = { | |
getRandom : (min, max) => { | |
return Math.random() * (max - min) + min; | |
}, | |
getRandomInt : (min, max)=>{ | |
return Math.floor(Math.random() * (max - min + 1)) + min; |
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
# Delete all branches that contain 'search_keyword' | |
git branch | grep 'search_keyword' | xargs git branch -D | |
# Delete all branches that have already merged into master or staging | |
git branch --merged | egrep -v "(^\*|master|staging)" | xargs git branch -D |
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
import { MouseTracker } from './mousetracker'; | |
/** | |
* A class that creates a parallax effect based on the mouse position. | |
* @hidden | |
*/ | |
export class Parallaxer { | |
private animate_: boolean; |
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
import { MouseTracker } from './mousetracker'; | |
/** | |
* A class that creates a parallax effect based on the mouse position. | |
* @hidden | |
*/ | |
export class Parallaxer { | |
private animate_: boolean; |
OlderNewer