- Video - React Fundamentals
- Article - ReactJS For Stupid People
- Article - Understanding the React Component Lifecycle
- Article - React.js Cheatsheet
- Video - React: Flux Architecture (ES5)
- Article - A cartoon guide to Flux
- Article - Flux For Stupid People
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
// Card Constructor | |
function Card(s, n) { | |
var suit = s; | |
var number = n; | |
this.getNumber = function() { | |
return number; | |
}; | |
this.getSuit = function() { | |
return suit; | |
}; |
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
<?php | |
abstract class enemyShip { | |
protected $name; | |
protected $amtDamage; | |
public function setName($newName) { | |
$this->name = $newName; | |
} | |
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
<?php | |
abstract class enemyShip { | |
protected $name; | |
protected $amtDamage; | |
public function setName($newName) { | |
$this->name = $newName; | |
} | |
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
<?php | |
////////////////////////////////// | |
// Reddit "hot" story algorithm // | |
////////////////////////////////// | |
function hot($ups, $downs, $date) | |
{ | |
if (is_string($date)) $date = strtotime($date); | |
$s = $ups - $downs; |
Docker version 17.05.0-ce
$ docker-machine create -d virtualbox --virtualbox-memory "512" manager1
$ docker-machine create -d virtualbox --virtualbox-memory "512" manager2
$ docker-machine create -d virtualbox --virtualbox-memory "512" worker1
$ docker-machine create -d virtualbox --virtualbox-memory "512" worker2
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
const { | |
ApolloServer, | |
gql, | |
SchemaDirectiveVisitor | |
} = require('apollo-server'); | |
const { defaultFieldResolver } = require('graphql'); | |
const typeDefs = gql` | |
directive @upper on FIELD_DEFINITION |
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
const { | |
ApolloServer, | |
gql, | |
SchemaDirectiveVisitor | |
} = require('apollo-server'); | |
const fetch = require('node-fetch'); | |
const typeDefs = gql` | |
directive @rest(url: String) on FIELD_DEFINITION |
OlderNewer