- Download this application skeleton.
- Convert the app to use AJAX.
- Add any files you changed to your gist and submit your code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hi { | |
async wtf() { | |
console.log('doing stuff'); | |
} | |
async handleSubmit({ nameOnCard, zipCode }: FormFieldsInterface) { | |
console.log('why you no work'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------------------------------------------------ | |
// 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. | |
//------------------------------------------------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |