Skip to content

Instantly share code, notes, and snippets.

View kietdlam's full-sized avatar

Kiet Lam kietdlam

View GitHub Profile
\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\usetikzlibrary{arrows}
\usepackage{pgfplots}
\usepackage{miller}
{
"cells": [
{
"cell_type": "code",
"execution_count": 37,
"metadata": {
"collapsed": false
},
"outputs": [
{
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
# Lifted from: http://www.danielmiessler.com/study/tmux/#why
# Tmux settings
# Set XTerm key bindings
#setw -g xterm-keys on
# Set colors
set-option -g default-terminal "screen-256color"
set -g default-terminal "screen-256color"
include_recipe "database::postgresql"
postgresql_connection_info = {
:host => '127.0.0.1',
:port => 5432,
:username => 'postgres',
:password => node['postgresql']['password']['postgres']
}
# Do the same but pass the provider to the database resource
package trip;
/* You MAY add public @Test methods to this class. You may also add
* additional public classes containing "Testing" in their name. These
* may not be part of your trip package per se (that is, it must be
* possible to remove them and still have your package work). */
import org.junit.Test;
import ucb.junit.textui;
import static org.junit.Assert.*;
package trip;
/* You MAY add public @Test methods to this class. You may also add
* additional public classes containing "Testing" in their name. These
* may not be part of your trip package per se (that is, it must be
* possible to remove them and still have your package work). */
import org.junit.Test;
import ucb.junit.textui;
import static org.junit.Assert.*;
This files should produce 2 pages of output, with the first being 40
lines long. Here we check that leftover blank lines from paragraph
skipping do not show up on the next page. one, two, three, four, five,
six, seven, eight, nine, ten, eleven, twelve, thirteen, fourteen,
fifteen, sixteen, seventeen, eighteen, nineteen, twenty, twenty-one,
twenty two, twenty three, twenty four, twenty five, twenty six, twenty
seven, twenty eight, twenty nine,