Skip to content

Instantly share code, notes, and snippets.

@smykes
smykes / nfl.json
Last active November 16, 2023 14:23
A JSON string of all 32 NFL football teams including city, name, conference, division, and abbreviation.
[
{
"city": "Arizona",
"name": "Cardinals",
"abr": "ARI",
"conf": "NFC",
"div": "West"
},
{
"city": "Atlanta",
@smykes
smykes / index.html
Created August 16, 2019 19:36
VwZjaXw
<button id="click-1">
Test
</button>
<div class="drawer hide">
<button class="btn" id="red">Red</button>
<button class="btn" id="green">Green</button>
</div>
@smykes
smykes / App.jsx
Created December 30, 2016 23:33
React Question
import React, { Component } from 'react';
import ToggleBox from '../components/ToggleBox';
class App extends Component {
constructor(props) {
super(props);
this.state = {
total : 60,
count: 0
};
}
@smykes
smykes / stadiums.json
Last active December 5, 2016 23:58
2016 Regular Season NFL Statdium
[
{
"Name":"AT&T Stadum",
"City":"Arlington",
"State":"Texas",
"Surface":"Synthetic",
"Roof":"Retractable",
"Geo":{
"Lat":"32.747778",
"Long":"-97.092778"
<Form onSubmit={this.handleFormSubmit} name='conference-form' />
class AutoComplete extends React.Component {
_getChoices() {
let ret = [];
for (var i = 0; i < this.props.suggestions.length; i++) {
ret.push(<AutoCompleteChoice onClick={this.pick}>)
}
return ret;
}
render() {
let listItem = this._getChoices();
@smykes
smykes / 0_reuse_code.js
Created May 27, 2016 13:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@smykes
smykes / main.js
Created June 15, 2013 14:27
Question is in a comment of line 25 of models.js.
var AppRouter = Backbone.Router.extend({
routes: {
"" : "list",
"clients/:id" : "clientDetails"
},
initialize: function () {
},
list: function(page) {
$('#header').html(new HeaderView().render().el);
@smykes
smykes / colors.json
Created April 5, 2015 22:20
Copic Marker JSON file
[
{
"name": "Colorless Blender",
"code": "0",
"bg": "#ffffff",
"types": [
"sketch",
"classic",
"ciao",
"wide"
@smykes
smykes / SassMeister-input-HTML.html
Created March 2, 2015 23:53
Generated by SassMeister.com.
<body>
<div class="panel">
<h1>ScreenBlazer</h1>
<div class="img-circle"></div>
<div class="footer">
<div class="logo">rev<sup>4</sup></sup></sup></div>
<div class="copy"><a href="">Terms of Service</a> | <a href="#">Privacy Policy</a></div>
</div>