Skip to content

Instantly share code, notes, and snippets.

import { Directive, ElementRef, forwardRef, Input, Renderer2 } from '@angular/core';
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
import { fromEvent } from 'rxjs/observable/fromEvent';
import { merge } from 'rxjs/observable/merge';
import { timer } from 'rxjs/observable/timer';
import { Subscription } from 'rxjs/Subscription';
export const DEFAULT_VALUE_ACCESSOR : any = {
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => NgControlOptionsDirective),
#!/bin/bash
# fork from https://community.webfaction.com/questions/8894/installing-mosh
# set up standard build environment
mkdir -p $HOME/src $HOME/tmp
export C_INCLUDE_PATH="$HOME/include:$C_INCLUDE_PATH"
export LIBRARY_PATH="$HOME/lib:$LIBRARY_PATH"
export LD_LIBRARY_PATH="$HOME/lib:$LD_LIBRARY_PATH"
export CPPFLAGS="-I$HOME/include $CPPFLAGS"
export LDFLAGS="-L$HOME/lib $LDFLAGS"
require 'formula'
class Jhcal < Formula
homepage 'http://www2.tokai.or.jp/y_okamon/myfreesoft/jhcal/jhcal.html'
url 'http://www2.tokai.or.jp/y_okamon/myfreesoft/jhcal/jhcal-2.0.tar.gz'
sha1 'ae09d530c3e89da8624245f95378a7991b597101'
def install
system "make"
bin.install "jhcal"
@slack4u
slack4u / gtk-clearlooks-engine.rb
Created October 18, 2012 00:51
Clearlooks formula for Homebrew
require 'formula'
class GtkClearlooksEngine < Formula
homepage 'http://clearlooks.sourceforge.net/'
url 'http://prdownloads.sourceforge.net/clearlooks/clearlooks-0.6.2.tar.bz2'
version '0.6.2'
sha1 'a0bf0e17c7b75fd4906683947ce17dd5598d0f65'
depends_on 'gtk+'
depends_on :x11