Skip to content

Instantly share code, notes, and snippets.

View ivanoats's full-sized avatar
💭
🤙 Stoked 🏄‍♂️

Ivan Storck ivanoats

💭
🤙 Stoked 🏄‍♂️
View GitHub Profile
@ivanoats
ivanoats / output.txt
Last active September 15, 2016 08:47 — forked from anonymous/-
Karma error
[09:32:56] Using gulpfile ~/dev/react-starter/gulpfile.js
[09:32:56] Starting 'test:karma'...
DEBUG [config]: autoWatch set to false, because of singleRun
DEBUG [plugin]: Loading inlined plugin (defining webpackPlugin, preprocessor:webpack).
DEBUG [plugin]: Loading inlined plugin (defining framework:mocha).
DEBUG [plugin]: Loading inlined plugin (defining launcher:Chrome, launcher:ChromeCanary, launcher:Dartium, test).
DEBUG [plugin]: Loading inlined plugin (defining launcher:IE).
DEBUG [plugin]: Loading inlined plugin (defining launcher:Firefox, launcher:FirefoxDeveloper, launcher:FirefoxAurora, launcher:FirefoxNightly).
DEBUG [plugin]: Loading inlined plugin (defining launcher:PhantomJS).
DEBUG [plugin]: Loading inlined plugin (defining preprocessor:sourcemap).
@ivanoats
ivanoats / app.js
Last active September 7, 2017 11:48 — forked from anonymous/app.js
Uncaught TypeError: Super expression must either be null or a function, not undefined in _prelude.js:1 SOLVED: component must be Component
import React from 'react';
import { LeftDropZone } from './leftDropZone';
import { RightDropZone } from './rightDropZone';
export class ScholarshipsApp extends React.component {
render() {
return (
<section id="drop-zones">
<h1>Scholarships Admin</h1>
<LeftDropZone />
@ivanoats
ivanoats / node-modules.sh
Last active August 29, 2015 14:15 — forked from anonymous/node-modules.sh
My usual suspects for global node modules
#!/usr/bin/env zsh
npm -g install async-you
npm -g install bower
npm -g install browserify
npm -g install browserify-adventure
npm -g install bug-clinic
npm -g install casperjs
npm -g install cli-md
npm -g install coffee-script
'use strict';
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-jscs');
grunt.loadNpmTasks('grunt-contrib-jshint');
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="ReactJS Hello World" />
<meta charset="utf-8">
<title>First React Component</title>
<script src="http://fb.me/react-0.8.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.8.0.js"></script>
<script type="text/jsx">
/*** @jsx React.DOM */
@ivanoats
ivanoats / script3.jsx
Last active August 29, 2015 14:10 — forked from anonymous/script3.jsx
Animal with Flow types
function Animal(name: string, speed: number, focus: number) {
this.name = name;
this.speed = speed || 1;
this.focus = focus || 1;
this.position = 0;
this.run = function() {
if (Math.random() * 10 < this.focus) {
this.position = this.position + this.speed;
}
};
@ivanoats
ivanoats / script.js
Last active August 29, 2015 14:10 — forked from tsongas/script.js
$(document).ready(function() {
var numbers = [];
console.log(numbers);
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
@ivanoats
ivanoats / .gitignore
Last active August 29, 2015 14:09 — forked from tsongas/race3.html
Rabbit Race with jQuery
# Created by .gitignore support plugin (hsz.mobi)
.idea
.DS_Store
'use strict';
var async = require('async');
var Enrollment = require('../models/enrollment');
var Student = require('../models/student');
var Course = require('../models/course');
module.exports = function(app) {
app.get('/api/studentsincourse/:courseId', function(req, res) {
Enrollment.find({courseId: req.params.courseId}, function(err, enrollments) {
var studentsList = [];

Adapted from Sumit Gupta

Philosophies

  • My project is a work of engineering, not hackery

    • Your first instinct is not necessarily correct.
    • Having to use a hack is a tragedy.
  • My Project uses behavior-driven development

  • The spec comes before the code.