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
DROP DATABASE project_one; | |
CREATE DATABASE project_one; | |
CONNECT project_one; | |
CREATE TABLE people ( | |
id int NOT NULL | |
AUTO_INCREMENT, | |
first_name varchar(80) NOT NULL, | |
last_name varchar(80) NOT NULL, |
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
\documentclass{article} | |
\usepackage{units} | |
\usepackage{xcookybooky} | |
\begin{document} | |
\begin{recipe} | |
[ | |
preparationtime = 30 min, | |
bakingtime = 1 hour, | |
bakingtemperature = {\unit[225]{C}}, |
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
/*James Sappington; Mini Automatic Aquaponic Code for 24 hour use*/ | |
/*-----( Import needed libraries )-----*/ | |
#include <LiquidCrystal.h> // http://arduino.cc/en/Tutorial/LiquidCrystalDisplay | |
#include <Stepper.h> | |
#include <OneWire.h> | |
#include <SoftwareSerial.h> // we have to include the SoftwareSerial library, for pH. | |
// code for pH sensor adapted from seller: https://www.atlas-scientific.com/_files/code/Arduino_pH_sample_code.pdf | |
/*-----( Declare Constants, Pin Numbers )-----*/ |
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
/* | |
Blinkier | |
Based on `Blink' | |
Toggles the state for two LEDs. Also practice for the Garduino as | |
a fully-realized state machine. | |
This code is in the public domain. | |
*/ |
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
/* Blink.ino */ | |
int pin; | |
int state; | |
void do_serial_read ( void ); | |
int read_number ( char * ); | |
void setup ( void ) { | |
Serial.begin(9600); |
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
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) (format=xelatex 2013.9.7) 24 DEC 2013 17:29 | |
entering extended mode | |
restricted \write18 enabled. | |
%&-line parsing enabled. | |
**\input mwe.tex | |
(./mwe.tex | |
LaTeX Warning: Writing file `./cs-smp.cls'. | |
\openout15 = `cs-smp.cls'. |
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
(defun *magit-delete-trailing-whitespace-from-file () | |
"Removes whitespace from the current item." | |
(interactive) | |
(save-excursion | |
(magit-visit-item) | |
(delete-trailing-whitespace) | |
(save-buffer) | |
(kill-buffer)) | |
(magit-refresh)) |
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
\documentclass{article} | |
\usepackage{lettrine} | |
\usepackage{xparse} | |
% Starts an environment like this: | |
% | |
% \begin{prayer}<<stop token>>% | |
% [extra options for lettrine]% | |
% {'sidebar' text}% | |
% [width of sidebar] |
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
(require 'cl) ; place your cursor after this paren and pres C-x C-e | |
(defun **strip-stuff (file &optional environments) | |
"Takes the current file and strips every environment from | |
`ENVIRONMENTS` into `FILE`." | |
(interactive "FFile name: \nxList of Environments (\"one\" \"two\" \"etc\"): ") | |
(if (every 'stringp environments) | |
(progn | |
(beginning-of-buffer) | |
(let ((search-regex (concat "\\\\begin{" |