Skip to content

Instantly share code, notes, and snippets.

View dcsan's full-sized avatar
🌸
dc.rik.ai

DC dcsan

🌸
dc.rik.ai
View GitHub Profile
define("famous/scene/Router", ["require", "exports", "module", "./Controller", "./Route"], function (t, e, i) {
function o() {
c.apply(this, arguments), this.connected = [], this._routes = [], this._redirects = [], this.handleStateChange = this._handleStateChange.bind(this), this.bindListener()
}
function s(t) {
this.updateConnected(t.getEvent())
}
function n(t) {
define("famous/scene/Router", ["require", "exports", "module", "./Controller", "./Route"], function (t, e, i) {
function o() {
c.apply(this, arguments), this.connected = [], this._routes = [], this._redirects = [], this.handleStateChange = this._handleStateChange.bind(this), this.bindListener()
}
function s(t) {
this.updateConnected(t.getEvent())
}
function n(t) {
@dcsan
dcsan / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
#section {
box-sizing: border-box;
Rebot.parseTest = function() {
var blob = {
"begin": {
"global": {
"debug": true
},
"var": {
"name": "EnglishChat",
"botname": "EnglishChatBot",
var Spacing = MUI.Styles.Spacing;
var Colors = MUI.Styles.Colors;
var ColorManipulator = MUI.Utils.ColorManipulator;
AppTheme = {
appBar: {
color: '#15e71d',
textColor: 'white'
},
@dcsan
dcsan / bst.js
Created July 28, 2016 20:23 — forked from trevmex/bst.js
A simple binary search tree in JavaScript
/*
* File: bst.js
*
* A pure JavaScript implementation of a binary search tree.
*
*/
/*
* Class: BST
*
const debug = require('debug')("test:RoomData");
// var test = require('tape');
const test = require('tape-async');
test('join regex', (t) => {
let pairs = [
{
msg: '"$invitee😀" joined the group chat via the QR Code shared by "$invitee😀"',
@dcsan
dcsan / bots
Created December 27, 2016 11:41
bots.json
// keywords will trigger anywhere inside a block of text
const keywords = {
"spanish food": "I love Paella!",
"thai food": "I love TomYum soup!",
// you can have multiline texts
// surround it with backticks: ` ` (not single ' ' quotes )
"san francisco": `The Golden Gate City!
I love san francisco!
@dcsan
dcsan / bots
Last active December 27, 2016 11:41
bots.json
// keywords will trigger anywhere inside a block of text
const keywords = {
"spanish food": "I love Paella!",
"thai food": "I love TomYum soup!",
// you can have multiline texts
// surround it with backticks: ` ` (not single ' ' quotes )
"san francisco": `The Golden Gate City!
I love san francisco!
! function(a, b) {
"function" == typeof define && (define.amd || define.cmd) ? define(function() {
return b(a)
}) : b(a, !0)
}(this, function(a, b) {
function c(b, c, d) {
a.WeixinJSBridge ? WeixinJSBridge.invoke(b, e(c), function(a) {
g(b, a, d)
}) : j(b, d)
}