Instantly share code, notes, and snippets.

View example.java
public void testSetWeight()
{
float INT_TEST_PRECISION = 0;
// Create a client object using the constructor with 5 parameters.
Client tstClient = new Client("Smith", "Carl", 44, 70, 200);
assertNotNull(tstClient);
// set weight to a new value
tstClient.setWeight(180);
View pagepoll.sh
#!/bin/bash
FILE=$1
if [ -f $FILE ]; then
curl $FILE > $FILE.new
cmp --silent $FILE $FILE.new || <do stuff here because the website changed>
else
curl $FILE > $file
fi
View table.component.ts
import {
AfterContentInit, Component, ContentChildren,
EventEmitter, Input, OnChanges,
OnInit, Output, TemplateRef
} from '@angular/core'
import { chunkArray } from '@trapeze-gui/common'
@Component({
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
View American Serial Killers (mostly christian)
Jane Toppan; 1885 to 1901; killed 31. Nurse that confessed to poisoning 31 patients for her own sexual gratification. After overdosing them she would get in bed and lie with them as they died. Found not guilty by reason of insanity and interned in a mental institution until her death in 1938.
Billy Gohl; 1901 to 1913; killed 2. Alleged to have killed from 40 to 140 seamen in Aberdeen, Washington
Linda Hazzard; 1908 to 191; killed 1. 1 13–40+ Self-declared doctor and fasting specialist, which she advertised as a panacea for every medical ailment. Up to 40 patients could have died of starvation in her "sanitarium" of Olalla, Washington. Imprisoned for one death in 1912, was paroled in 1915 and continued to practice medicine without a license in New Zealand (1915–1920) and Washington (1920–1935). Died in 1938 while attempting a fasting to cure herself.
Bertha Gifford; 1909 to 1928; killed 3. Found not guilty by reason on insanity of three arsenic poisonings by insanity and suspected of 14 other killings, most
View movies.json
{
"list": [
{
"title": "127 Hours",
"alternate": "",
"year": "2010",
"format": "DVD"
},
{
"title": "28 Days Later",
View demo.html
<html>
<head>
<style>
.modal-container {
background: rgba(0,0,0,0.5);
display: block;
height: 100vh;
position: absolute;
left: 0;
top: 0;