Skip to content

Instantly share code, notes, and snippets.

View btholt's full-sized avatar
📈
In your clouds, making your datas work

Brian Holt btholt

📈
In your clouds, making your datas work
View GitHub Profile
@getify
getify / gist:0a8f7ff49565537c8f28
Last active August 29, 2015 14:18
WIP simple "routing"
function *router(token) {
var req = token.messages[0], res = token.messages[1], route, error;
for (route of routes) {
try {
route = route(req,res);
if (ASQ.isSequence(route)) {
// wait to resolve the route
route = yield route;
}
@max-mykhailenko
max-mykhailenko / # Sublime Emmet JSX Reactjs.md
Last active November 25, 2022 23:25
Sublime text 3. Enable Emmet in JSX files with Sublime React plugin

This is no longer needed as Emmet supports JSX - you just need to turn it all on. Did a quick tutorial: http://wesbos.com/emmet-react-jsx-sublime/

Thanks, @wesbos

Problem

  • Using emmet in jsx files
  • Emmet expands text when js autocomplete needed
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }