Skip to content

Instantly share code, notes, and snippets.

View coralmw's full-sized avatar

Coral coralmw

View GitHub Profile
conspire me the FUCK up ✈🏢✈🏢✈🏢✈🏢✈🏢 bush did 9/11✈ bush ✔ did it✈🏢blew up✈🏢the towers✈🏢🏢🌏 the✔towers ✔✔if i do ƽaү so my self 👀 watch loose change 👀 how did tower seven collapse tower seven tower seven (chorus: tower seven) mMMMMᎷМ🌏 👌👌 👌НO0ОଠOOOOOОଠଠOoooᵒᵒᵒᵒᵒᵒᵒᵒᵒ👌 👌👌 👌 🌏 ✈ 🏢 🏢 👀 👌👌bush did it
What the fuck did you just fucking say about me, you НO0ОଠOOOOOОଠଠOoooᵒᵒᵒᵒᵒᵒᵒᵒᵒ? I’ll have you know I graduated top of my class in the 👌👀 good shit go౦ԁ sHit👌 academy, and I’ve been involved in numerous secret raids on 👎Baaddd ShIT👎👎👎 👎, and I have over 300 confirmed (chorus: ʳᶦᵍʰᵗ ᵗʰᵉʳᵉ)👌👀. I am trained in 👌👀👌👀👌👀👌👀👌👀 warfare and I’m the top shiter in the entire US armed mMMMMᎷМ💯 👌. You are nothing to me but just another Baaa AaAadDddD Sh1t 👎. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, 💯 thats what im talking about right there right there . You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting
@coralmw
coralmw / lab.py
Created March 10, 2016 15:38
AtomNuc lab alpha dist
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
import scipy.optimize
d=np.array([5, 15, 25, 10, 20, 30])/10e3
v=np.array([3.14,2.44,1.30, 2.9, 1.92, 0.16])
def lin(x, a, b):
return a+b*x
pts = [[0.307201, -0.0120452], [0.142317,
0.282519], [-0.0341404, -0.363757], [-0.299668,
0.118691], [-0.320656, -0.0991055], [-0.0500675, -0.206753],
[-0.517559, 0.262643], [-0.306476,
0.608881], [0.0285123, -0.377378], [-0.268325, 0.199713], [0.42697,
0.450626], [-0.379635, 0.579737], [0.473411,
0.000481964], [0.0134005, -0.265615], [-0.0490208,
0.1905], [-0.340927, 0.310486], [0.184435, 0.093945], [-0.101716,
0.304049], [-0.30853, 0.291302], [0.389077,
0.518985], [0.0274738, -0.428668], [-0.445044,
Every programmer occasionally, when nobody's home, turns off the lights, pours a glass of scotch, puts on some light German electronica, and opens up a file on their computer. It's a different file for every programmer. Sometimes they wrote it, sometimes they found it and knew they had to save it. They read over the lines, and weep at their beauty, then the tears turn bitter as they remember the rest of the files and the inevitable collapse of all that is good and true in the world.
This file is Good Code. It has sensible and consistent names for functions and variables. It's concise. It doesn't do anything obviously stupid. It has never had to live in the wild, or answer to a sales team. It does exactly one, mundane, specific thing, and it does it well. It was written by a single person, and never touched by another. It reads like poetry written by someone over thirty.
import pylab
from Tkinter import *
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
from matplotlib.figure import Figure
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
import numpy as np
class ParticleMotion:
def __init__(self, master):
(lambda __builtin__: (lambda __print, __y, __d: [[[[[[[[[[(lambda __after: (lambda __after: (lambda ___: __after(__d))(__print('Usage: python main.py inputfilename [outputfilename]')) if __d.len(__d.sys.argv)<=1 else [(lambda __after: [__after(__d) for __d.outfilename in [(__d.sys.argv[2])]][0] if __d.len(__d.sys.argv)>=3 else (lambda __after: [__after(__d) for __d.outfilename in [('.ol.py'.join(__d.infilename.rsplit('.py',1)))]][0] if '.py' in __d.infilename else [__after(__d) for __d.outfilename in [((__d.infilename+'.ol.py'))]][0])(lambda __d: (lambda ___: __after(__d))(__print(('Writing to %s'%__d.outfilename)))))(lambda __d: [[[[(lambda ___: (lambda __after: (lambda ___: (lambda ___: (lambda ___: (lambda ___: __after(__d))(__print(__d.onelined)))(__print('--- ONELINED ---------------------------------')))(__print(__d.original)))(__print('--- ORIGINAL ---------------------------------')) if __d.VERBOSE else __after(__d))(lambda __d: __after(__d)))(__d.outfi.write((__d.onelined+'\n'))) for __d.onelined in
@coralmw
coralmw / dvol.py
Created October 13, 2015 19:38
Changes the volume of a denon network-attached receiver.
"""Trivial app to change the volume of my denon reciever from my laptop.
"""
import telnetlib
import sys
if __name__ == "__main__":
if len(sys.argv) < 2:
print("""USAGE: dvol [0-100]""")
# curvefit .py Problem Sheet 5 example
import numpy as np
from scipy.optimize import curve_fit
import matplotlib.pyplot as plt
def func(x, a, b, c):
return a*np.exp(-b*x) + c # function to generate data for curve fit
# The first part of this program generates a set of data that follows a particular functional form that allows us to test the curvefit routine
x = np.linspace(0, 4, 50)
y = func(x, 3.0, 1.3, 5)
yn = y + 0.2*np.random.normal(size=len(x)) # adding some noise to the data points
@coralmw
coralmw / panic.txt
Created September 9, 2015 09:17
RP panic - after using low OCM?
Unable to handle kernel paging request at virtual address 6528d77c
pgd = 5bbc0000
[6528d77c] *pgd=00000000
Internal error: Oops - BUG: 5 [#1] PREEMPT SMP ARM
Modules linked in: zynq_remoteproc remoteproc virtio virtio_ring
CPU: 0 PID: 1637 Comm: modprobe Not tainted 3.19.0-xilinx #1
Hardware name: Xilinx Zynq Platform
task: 5d65c580 ti: 5bb0a000 task.ti: 5bb0a000
PC is at put_pid+0x10/0x54
LR is at __fput+0x11c/0x1a8
typedef struct actionTable {
uint64_t nanos; // ulong max 4.9secs, ull max = 584 years
XTime clocks;
uint32_t pins;
uint32_t a1;
uint32_t a2;
} actionTable_t;
(XTime = u64)
niave assumption: that this is of size 8 + 8 + 4 + 4 + 4 = 28