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 Material { | |
public static readonly ACRYLIC = new Material(`ACRYLIC`, `AC`, `Acrylic`); | |
public static readonly ALUM = new Material(`ALUM`, `AL`, `Aluminum`); | |
public static readonly CORK = new Material(`CORK`, `CO`, `Cork`); | |
public static readonly FOAM = new Material(`FOAM`, `FO`, `Foam`); | |
// private to diallow creating other instances of this type. | |
private constructor(public readonly key: string, public readonly id: string, public readonly name: string) {} | |
public toString(): string { |
- File sharing - https://send.firefox.com/
- Video conferencing - https://meet.jitsi.net/
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
// Simplified from https://github.com/dabit3/dynamodb-documentclient-cheat-sheet | |
/** | |
* DynamoDB.DocumentClient | |
*/ | |
const dynamoDbClient = new AWS.DynamoDB.DocumentClient({ | |
region: 'ap-southeast-1', | |
convertEmptyValues: true, | |
httpOptions: { | |
connectTimeout: 1000, // 1s |
- https://javascript.info/import-export
- https://stackoverflow.com/questions/37200080/how-to-export-imported-object-in-es6
export let months = ['Jan', 'Feb', 'Mar','Apr', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
export const MODULES_BECAME_STANDARD_YEAR = 2015;
export function sayHi() { ... }
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
/** | |
* Sample Component file for reference, because Joey forgets simple stuff. | |
*/ | |
import React from 'react'; | |
import './Sample.scss'; | |
class Sample extends React.Component { | |
constructor(props) { | |
super(props); |
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
# Setup | |
# ./spec/spec_helper.rb | |
Capybara.register_driver :poltergeist do |app| | |
options = { | |
debug: true, # debug mode, verbose logs | |
timeout: 30, | |
window_size: [360, 640], | |
phantomjs_options: [ | |
'--proxy-type=none', |
# .ruby-version
2.5.1
NewerOlder