Skip to content

Instantly share code, notes, and snippets.

View TylorS's full-sized avatar
🍕
OSS on my mind

Tylor Steinberger TylorS

🍕
OSS on my mind
View GitHub Profile
@TylorS
TylorS / designer.html
Created August 6, 2014 06:03
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
</template>
<script>
@TylorS
TylorS / designer.html
Created August 6, 2014 06:15
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@TylorS
TylorS / designer.html
Created January 7, 2015 20:59
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@TylorS
TylorS / app.js
Last active September 22, 2015 18:49
Possible router driver api
//...imports...
// Declare routes and their associated action
// route:action
const routeDeclaration = {
'/users': {
'/' : 123,
':userId': 456
':userId/profile': 789
}
@TylorS
TylorS / helpers.js
Last active September 24, 2015 08:46
const supportsHistory = () => {
const ua = navigator.userAgent;
// We only want Android 2 and 4.0, stock browser, and not Chrome which identifies
// itself as 'Mobile Safari' as well, nor Windows Phone (issue #1471).
if ((ua.indexOf('Android 2.') !== -1 ||
(ua.indexOf('Android 4.0') !== -1)) &&
ua.indexOf('Mobile Safari') !== -1 &&
ua.indexOf('Chrome') === -1 &&
ua.indexOf('Windows Phone') === -1) {
const {run} = require(`@cycle/core`)
const {makeDOMDriver} = require(`@cycle/dom`)
const {makeHistoryDriver} = require(`cycle-history`)
const {Main} = require(`./app/dialogue/Main`)
function clientSideApp(responses) {
let requests = Main(responses)
requests.History = requests.History.skip(1)
requests.DOM = requests.DOM.skip(1)
return requests
/** @jsx hJSX */
import { run, Rx } from '@cycle/core'
import { makeDOMDriver, hJSX } from '@cycle/dom'
function intent(DOM) {
const click$ = Rx.Observable.fromEvent(document, 'click')
return click$
}
var babel = require('babel-core')
module.exports = function (wallaby) {
return {
// set `load: false` to all of the browserified source files and tests,
// as they should not be loaded in browser,
// their browserified versions will be loaded instead
files: [
{pattern: 'src/**/*.js', load: true}
],
These benchmarks can be found at https://github.com/TylorS/most/tree/master/test/perf
Hopefully they will get merged into the most.js repo itself.
To keep up with that, the PR is here: https://github.com/cujojs/most/pull/172
Versions
------------------------------------------------------
Node - 5.1.0
Most - 0.16.0
Rx 4 - 4.0.7
Rx 5 - 5.0.0-alpha.12
git checkout master
git fetch origin
git pull origin master
git checkout develop
git merge master
git checkout master
git merge --no-ff develop
git push origin master
npm start