Skip to content

Instantly share code, notes, and snippets.

View emroot's full-sized avatar

Emre Ozdemir emroot

  • Airbnb
  • San Francisco
View GitHub Profile
{"lastUpload":"2020-04-18T18:17:34.407Z","extensionVersion":"v3.4.3"}
adsk agkhdfasd
f asdf
ashd
asdfh asdf
@emroot
emroot / Component.jsx
Last active August 29, 2015 14:26
[Life of a Ticket] React code example
// Modules
const React = require('react');
// Data
const data = {
name: "John Doe",
listings: [{
id: 1,
name: "Quiet Room in Duboce Triangle"
}]
@emroot
emroot / Component.jsx
Created March 31, 2015 23:11
[Life of a Ticket] React code example
var Backbone = require('backbone');
var React = require('react');
var data = {
name: 'John Doe',
listings: [{
id: 1,
name: 'Quiet room in Duboce Triangle'
}]
};
@emroot
emroot / template.hbs
Created March 31, 2015 23:01
[Life of a Ticket] Backbone + Knockout.js code example
<div id='myComponent'>
<span data-bind='text: name'></span>
<ul>
<!-- ko foreach: listings -->
<li data-bind='text: name'></li>
<!-- /ko -->
</ul>
</div>