$ sudo npm install express
: install the latest Express.js locally`$ sudo npm install [email protected] --save
: install Express.js v4.2.0 locally and save topackage.json
$ sudo npm install -g [email protected]
: install Express.js command-line generator v4.0.0
This file contains hidden or 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
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
This file contains hidden or 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
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
Don't try to be (too) innovative. Think in terms of HTML elements like <div>
, <p>
, <span>
, <option>
, <input>
, <button>
, etc. React calls these "native components" -- treat em that way!
β no knowledge outside of itself other than its props. or appstore... but that's it!
β React components represent UI at any POINT-IN-TIME through merely utilizing props and state
β use propTypes brah (and optional: getDefaultProps)
β always be explicit when passing props. none of the crap with spread operators
This file contains hidden or 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 React = require('react'); | |
const dynamics = require('dynamics.js'); | |
/** | |
* Using dynamics.js to transition things or just animate | |
* ------------------------------------------------------ | |
* props: | |
* - runTo enum("start", "finish) - which way to run. | |
* - onComplete callback | |
* - onChange callback |
This file contains hidden or 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
dev-server.js:60 [HMR] Waiting for update signal from WDS... | |
abstract-xhr.js:132 XHR finished loading: GET "http://localhost:3000/sockjs-node/info?t=1470073637035". | |
client:22 [WDS] Hot Module Replacement enabled. | |
client:45 [WDS] Errors while compiling. | |
client:47 ./~/react-spinkit/css/fade-in.css | |
Module parse failed: /Users/william/Desktop/welp/node_modules/react-spinkit/css/fade-in.css Unexpected character '@' (1:0) | |
You may need an appropriate loader to handle this file type. | |
SyntaxError: Unexpected character '@' (1:0) | |
at Parser.pp.raise (/Users/william/Desktop/welp/node_modules/react-scripts/node_modules/acorn/dist/acorn.js:923:13) | |
at Parser.pp.getTokenFromCode (/Users/william/Desktop/welp/node_modules/react-scripts/node_modules/acorn/dist/acorn.js:2831:8) |
This file contains hidden or 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
function fizzbuzz (set) { | |
var set = set ? set : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
var isValidSet = set.map((element) => {if (typeof element !== 'number') {return false} else return true}).indexOf(false) === -1 ? true : false | |
var gotFizz = (n) => {if (n % 3 === 0) {return true} else return false} | |
var gotBuzz = (n) => {if (n % 5 === 0) {return true} else return false} | |
if (!Array.isArray(set)) return new Error('First argument must an array with "Number" elements') | |
if (!isValidSet) return new Error('The elements of the first argument must all be "Numbers"') |
This file contains hidden or 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
// "Authenticator" is the state manager for "Login.js" and "Register.js" | |
// (see below for the files) | |
import React from 'react' | |
import Router from 'react-router-component' | |
import MUIThemeable from 'material-ui/styles/muiThemeable'; | |
const Link = Router.Link | |
import H1 from './H1' | |
import Container from './Container' |
The list below includes 5470 deleted tweets by realdavereilly.
Please note that all tweets quoted here are sourced from the Wayback Machine and were not directly accessed through the Twitter API or any Twitter client.
- 24 September 2021: This is gonna be so lit fam! π₯π₯π₯ https://twitter.com/theralphretort/status/1441314665292652546