Skip to content

Instantly share code, notes, and snippets.

@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 / 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",
'use strict';
angular
.module('gitHubIssueViewerApp', [
'ngRoute',
'ngSanitize',
'markdown'
])
.config(function($routeProvider) {
$routeProvider
.when('/', {
@smykes
smykes / SassMeister-input.scss
Created January 26, 2015 18:24
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.btn-facebook, .btn-facebook:hover {
background: $facebook-blue;
border-color: $facebook-blue-b;
.badge {
color: $facebook-blue;
@smykes
smykes / SassMeister-input.scss
Created January 26, 2015 18:38
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
var array = ['primary', 'secondary', 'tertiary', 'quartenary', 'quinary', 'senary'];
var colors = ['red', 'orange', 'yellow', 'blue', 'green', 'purple']
for (var i = 0; i < array.length; i++) {
var selectorName = ".btn-" + array[i];
@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>
@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 / 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
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();
<Form onSubmit={this.handleFormSubmit} name='conference-form' />