Skip to content

Instantly share code, notes, and snippets.


Jameson Aranda jamesona

View GitHub Profile
View function_types.js
function one() {console.log('one')} // named function
new Array([0]).forEach(function() {console.log('two')}) // anonymous function
const three = function() {console.log('three')}; // aliased anonymous function
const container = {
four: function() {console.log('four')}, // aliased anonymous function
View infer stats.html
html, body {
margin: 0;
padding: 0;
background: #ccc;
font-family: sans-serif;
h1, #input {
jamesona / enum_demo.ts
Last active Mar 4, 2019
use string enums and symbols as index types
View enum_demo.ts
enum Stats {
int = 'int does stuff',
str = 'str does other stuff',
def = 'def prevents stuff',
type StatName = keyof typeof Stats
interface HasStats {
stats: {
public void testSetWeight()
// Create a client object using the constructor with 5 parameters.
Client tstClient = new Client("Smith", "Carl", 44, 70, 200);
// set weight to a new value
if [ -f $FILE ]; then
curl $FILE > $
cmp --silent $FILE $ || <do stuff here because the website changed>
curl $FILE > $file
View table.component.ts
import {
AfterContentInit, Component, ContentChildren,
EventEmitter, Input, OnChanges,
OnInit, Output, TemplateRef
} from '@angular/core'
import { chunkArray } from '@trapeze-gui/common'
selector: 'trapeze-table',
View rpgSchema.json
"stats": [
"abbr": "STR",
"name": "Strength",
"desc": "Used for base physical attack, max carry weight, etc.",
"also": ["END", "ATT"]
}, {
"abbr": "WIS",
"name": "Wisdom",
View nirn_notes.json
"locations": {
"Lighthouse": "tp @p 2121 63 -55 0 0",
"Haven": "tp @p 2576 69 270 -90 0"
View Simple Biscuits
2c flour
2-4 tsp baking powder (more baking powder makes a lighter, fluffier biscuit; less makes a firmer flakier biscuit.)
1/4 tsp baking soda (optional, and probably not needed if you use a good double-acting baking powder.)
1/2 tsp salt
1/2c butter/shortening
1c milk
Preheat oven to 450 degrees. In a large mixing bowl, combine flour, baking powder, and salt. Using a pastry blender, cut butter into dry goods until crumbly. If you don't have a pastry blender handy, use your fingertips to pinch and rub the butter into the flour mix. (The faster the better, you don't want the fats to melt.) Make a well in the center and pour in milk. Stir just until the dough comes together. The dough will be very sticky. Turn dough onto floured surface, dust top with flour and gently fold dough over on itself 5 or 6 times. Press into a 1-inch thick round. Cut out biscuits with a 2-inch cutter (I usually use a mug or drinking glass), being sure to push straight down through the dough. Place biscuits on baking sheet so that th
You can’t perform that action at this time.