$ git clone git@github:USER/REPO.git --bare
| #!/usr/bin/env bash | |
| # Check that terminfo exists before changing TERM var to xterm-256color | |
| # Prevents prompt flashing in Mac OS X 10.6 Terminal.app | |
| if [ -e /usr/share/terminfo/x/xterm-256color ]; then | |
| export TERM='xterm-256color' | |
| fi | |
| # Turn off standout; turn off underline | |
| tput sgr 0 0 |
| // Sup. |
The create operator in the Rx.Observable object takes a callback that accepts an Observer as a parameter. That function defines how the Observable will emit values
var observable = Rx.Observable.create(function(observer) {
observer.onNext('Sergio');
observer.onNext('Tyrone');| function Observer(destination) { | |
| this.destination = destination | |
| } | |
| Observer.prototype = { | |
| constructor: Observer, | |
| next(value) { | |
| if (this.destination.next && !this.isUnsubscribed) { | |
| this.destination.next && this.destination.next(value) |
| class RecordMap { | |
| set(map, record) { | |
| if (map && !record) { | |
| record = map | |
| map = Immutable.Map() | |
| } | |
| return map.set(record.id, new Record(record)) | |
| } | |
| setGroup(map, data) { |
| const { cloneElement } = React | |
| const plopProps = plops => ( | |
| props => ( | |
| inward => ( | |
| plops(props) | |
| ? cloneElement(plops(props), props, (plops(props).props.children || []).concat(inward.plops(props))) | |
| : inward.plops(props) | |
| ) | |
| ) |
| const React, { Component } from 'react' | |
| const { render } from 'react-dom' | |
| const { Observable } from 'rxjs' | |
| const db = {} | |
| class Backpack extends Component { | |
| constructor(props) { | |
| super(props) |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>Monokai Phoenix</string> | |
| <key>settings</key> | |
| <array> | |
| <dict> | |
| <key>settings</key> |
I hereby claim:
To claim this, I am signing this object: