Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
#!/bin/bash | |
: ' | |
Complete command line script for a new wordpress install. | |
You must still build an APACHE VIRTUALHOST | |
$ ./getwp.sh example.taui.io ex-admin | |
Arguments: | |
1 - webpage, example.taui.io |
# -*- coding: utf-8 -*- | |
""" | |
Flask-Login example | |
=================== | |
This is a small application that provides a trivial demonstration of | |
Flask-Login, including remember me functionality. | |
:copyright: (C) 2011 by Matthew Frazier. | |
:license: MIT/X11, see LICENSE for more details. | |
""" |
import threading | |
import Queue | |
import time | |
import fileinput | |
import sys | |
validated_stdin = Queue.Queue() |
" Apparently some vim environments require colons before commands in | |
" .vimrc and others don't. This file has been primarily tested in | |
" Ubuntu 12.04, 13.10, and 14.04 environments, where a : is required | |
" on each line before a command. According to one stackexchange topic | |
" it is best to leave the leading colons because systems that do not | |
" require them can still execute them. | |
" Author - Trent Robbins | |
" Turn arrow keys off: | |
" To cycle history in `ed` mode, use C-n and C-p (although up and down might work fine) |
""" | |
Check .pyc files against .py files in a directory and all its descendants to see if any pyc files do not have their accompanying py files. | |
To get input for this, run the command: | |
find . -regex .*pyc? > checker.txt | |
Check if the line ends in pyc. | |
If it does, check if there is a line that is the same without the c. | |
If not, print the pyc line. |
var gulp = require('gulp'); | |
// Run shell commands with exec: | |
// https://www.npmjs.com/package/gulp-exec | |
var exec = require('child_process').exec; | |
// collectstatic task for Django | |
// https://www.npmjs.com/package/gulp-exec | |
gulp.task('collectstatic', function (cb) { | |
exec('python ../../manage.py collectstatic -i node_modules -i bower_components --noinput', function (err, stdout, stderr) { |
""" | |
placeholder docstring | |
""" | |
import threading | |
import time | |
import random | |
def waitsome(n): | |
""" wait some time | |
""" |
""" | |
Specification for retrieve_data: | |
If 200 is the status code, return the json object | |
If not, return an error | |
instead of subclassing Thread to store the data, we've used a global variable. | |
avoiding objects for now to keep everything accessible. | |
""" | |
import time | |
import threading |
Greatest Hits of 2015: | |
Nonviolent Communication | |
The Three Body Problem | |
Cloud Atlas | |
The E-myth Revisited | |
Cryptonomicon | |
The Information: A History, a Theory, a Flood | |
The Martian | |
True Names | |
The Wizard of Earthsea |