Skip to content

Instantly share code, notes, and snippets.

@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 / 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>
@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.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;