Skip to content

Instantly share code, notes, and snippets.

@jaredly
jaredly / Document.nm
Last active August 29, 2015 14:10
PoliSci Paper
{
"created": 1417578385218,
"modified": 1417578413708,
"content": "PoliSci Paper",
"children": [
{
"content": "Short essay question for Gideon’s Trumpet. Essay due December 3, 2014 at 5:00 PM.\n\nUsing the case of Gideon v. Wainwright (formerly Gideon v. Cochran) compare the trial courts and Supreme Court in mode of presentation, type of evidence considered, and role of legal representation. Consider the original trial, the Supreme court consideration of the case, and Gideon’s second trial in your answer. Finally, in light of the court’s prior decision in Betts v. Brady, was the court correct in overturning precedent? Why or why not? \n\nTAKING A CRIMINAL CASE THROUGH THE JUDICIAL PROCESS\n\nGideon v. Wainwright\n\n372 U.S. 335 (1963)\n\n1. Alleged commission of crime by Gideon (“Breaking and entering the Bay Harbor poolroom in Panama City with intent to commit … petty larceny”) on 6/3/61.\n2. Apprehension of Gideon.\n3. Preliminary examination.\n4. Grand Jury Indictmen
@jaredly
jaredly / Document.nm
Created December 3, 2014 01:36
360 - Web Server
{
"content": "360 - Web Server",
"children": [
{
"content": "cd ~/clone/360/server",
"children": [],
"language": "python",
"type": "ipython",
"waiting": false,
"started": 1414288814797,
@jaredly
jaredly / full.rs
Created December 4, 2014 18:31
rust compiling example server
extern crate iron;
extern crate router;
extern crate bodyparser;
extern crate serialize;
use std::io::net::ip::Ipv4Addr;
use iron::{status, Set, Iron, Request, Response, IronResult, Plugin};
use iron::response::modifiers::{Body, Bodyable};
@jaredly
jaredly / Document.nm
Created December 5, 2014 01:26
Kalman
{
"created": 1417740315890,
"modified": 1417742789938,
"content": "Kalman",
"children": [
{
"content": "import numpy",
"children": [],
"modified": 1417740315958,
"language": "python",
# Kalman
import numpy
def make_F(t, c=0):
return numpy.matrix([
[1, t, t**2/2.0, 0, 0, 0],
[0, 1, t, 0, 0, 0],
[0, -c, 1, 0, 0, 0],
[0, 0, 0, 1, t, t**2/2.0],
@jaredly
jaredly / kalman.py
Created December 8, 2014 16:00
Kalman Testing
# Kalman
import numpy as np
from numpy import matrix as mx
import time
def diags(values):
n = len(values)
m = np.zeros((n,n))
for i in range(n):
@jaredly
jaredly / gist:96b78c0c37c7d2f106f5
Created December 10, 2014 01:54
fix windows bootloading
Boot successfully repaired.
You can now reboot your computer.
Please do not forget to make your BIOS boot on sda3/EFI/ubuntu/shimx64.efi file!
If your computer reboots directly into Windows, try to change the boot order in your BIOS.
If your BIOS does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
@jaredly
jaredly / Document.nm
Last active August 29, 2015 14:12
ASyncTesting
{
"title": "ASyncTesting",
"opened": 1423013464575,
"repl": "none",
"root": {
"id": "hdh15c1gpw21v0j4ux9v759xi2qlwwmi",
"content": "ASyncTesting",
"children": [
{
"id": "lwxjcnj1iusxdzlvwwndtkxkkuqb1azo",
@jaredly
jaredly / inner.html
Created February 2, 2015 16:43
Demonstrate react devtools from inner frame
<script>
__REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__
</script>
<script src="vendor.js"></script>
<script>
window.React = parent.React = require('react')
window.onload = function() {
React.render(React.createElement('strong', null, 'hello'), document.body)
}
</script>
{
"id": "5pfq5dd9mortu4vnqsdnz4one4d8jyya",
"created": 1423014306490,
"modified": 1423014306490,
"content": "a mo",
"children": []
}