Skip to content

Instantly share code, notes, and snippets.

View seanders's full-sized avatar

Sean Miller seanders

  • San Francisco, CA
View GitHub Profile
object false
node(:issues_total) { @issues_total }
child(@issues => :issues) do
extends "issues/partials/search"
child :tracker => :tracker do
extends "trackers/partials/base"
extends "trackers/partials/languages"
import React from 'react'
import ReactDOM from 'react-dom'
var foo = 'hello'
console.log(foo)
const Foo = () => (<input foo='bar' ice='tea' abc='123' wut='now' type='text' id='123' placeholder='123' autoComplete='off' />)
ReactDOM.render(<Foo />, document.getElementById('abc'))
@seanders
seanders / page1.json
Last active June 23, 2019 20:10
Mock API for Frontend Homework Assignment
{
"results": [
{ "album_title": "Cardigan Letterpress Scenester", "year": 1967, "condition": "poor", "artist": { "name": "Sex Pistols", "id": 0 } },
{ "album_title": "Sriracha Vinegar Disrupt", "year": 1964, "condition": "poor", "artist": { "name": "Derek and the Dominos", "id": 1 } },
{ "album_title": "Heirloom Twee Literally", "year": 1923, "condition": "very_good", "artist": { "name": "The Animals", "id": 2 } },
{ "album_title": "Distillery Intelligentsia Plaid", "year": 1939, "condition": "fair", "artist": { "name": "Living Colour", "id": 3 } },
{ "album_title": "Locavore Stumptown Flexitarian", "year": 1950, "condition": "fair", "artist": { "name": "The Jackson Five", "id": 4 } },
{ "album_title": "Banjo Pitchfork Flannel", "year": 1984, "condition": "mint", "artist": { "name": "The Who", "id": 5 } },
{ "album_title": "90's Hashtag Chartreuse", "year": 1921, "condition": "mint", "artist": { "name": "AC/DC", "id": 6 } },
{ "album_title": "Authentic Knausgaard Godard", "ye
class Hi {
async wtf() {
console.log('doing stuff');
}
async handleSubmit({ nameOnCard, zipCode }: FormFieldsInterface) {
console.log('why you no work');
}
}
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------
@seanders
seanders / index.html
Created May 2, 2013 19:18 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
require 'benchmark'
n = 10 ** 5
first_array = (1..300).to_a
second_array = (301..600).to_a
Benchmark.bmbm do |x|
x.report('(+) Concat:') { n.times do; first_array + second_array; end; }
x.report('(flatten) Flatten:') { n.times do; [ first_array, second_array].flatten; end; }
{
"erb_verify_command": "erb -xT - {file_name} | ruby -c",
"ruby_verify_command": "ruby -c {file_name}",
"run_ruby_unit_command": "ruby -Itest {relative_path}",
"run_single_ruby_unit_command": "ruby -Itest {relative_path} -n '{test_name}'",
"run_cucumber_command": "cucumber {relative_path}",
"run_single_cucumber_command": "cucumber {relative_path} -l{line_number}",
{
"auto_complete_commit_on_tab": true,
"auto_match_enabled": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_size": 12.0,
// "font_face": "Consolas Big",
"caret_style": "phase",
"indent_guide_options":
[