Skip to content

Instantly share code, notes, and snippets.

f(x) = a*x + b
set terminal png size 1024,768
set xlabel "I [mA]"
set ylabel "U [V]"
set title "U=f(I)"
fit f(x) "rc.dat" via a,b
set output "rc.png"
plot f(x) notitle, "rc.dat" notitle with xyerrorbars ls 3
Laboratorium 2 - 9.11.2010 - korelacja
Korelacja - podobieństwo dwóch zjawisk (np. sygnalow, jak jeden jest podobny do drugiego)
Korelacja wzajemna (dla 2), autokorelacja (dla 1)
R_{xx}(\tau) = E[x(t)x(t+\tau)]
R_{x,y}(\tau) = E[x(t)y(t+\tau)]
@teamon
teamon / README
Created November 23, 2010 12:27
Teoria sygnalow, laboratorium nr 3
Laboratorum nr 3 - 23.11.2010 - Probkowanie i kwantowanie
1. Probkowanie
sinus
a) fpr > 2*f
b) fpr == 2*f
c) fpr < f
Jak wyglada sygnal w dziedzinie czasu i czestotliwosci?
@teamon
teamon / data.txt
Created November 28, 2010 13:57
LUC
# Tabela przejsc miedzy stanami
# q(t) z(t) q(t+1)
0 0 3
0 1 1
0 2 2
1 0 1
1 1 1
1 2 1
2 0 5
2 1 1
@teamon
teamon / lab4
Created December 7, 2010 12:37
Laboratorium nr 4 - 7.12.2010
Dyskretna transformata Fouriera
1. sinus
wyznaczyc widmo dla sygnalu ktory
a) w n probkach bedzie mial calkowita liczbe okresow
b) w n probkach bedzie mial niecalkowita liczbe okresow
fft/g + semilogy -> widmo
2. dyskretna transformata Fouriera (probkowanie widma ciaglego)
a) f_sin \in m*fpr/N, m \in {0,1,..,N-1}
@threetee
threetee / unicorn_wrapper.sh
Created January 20, 2012 19:52
Wrapper to allow runit to send signals to the unicorn master even when its PID changes
#!/bin/sh
set -e
APP=$1
APP_PATH="/srv/${APP}/current"
RAILS_ENV=$2
UNICORN_CONFIG="/etc/unicorn/${APP}.rb"
UNICORN_PID_FILE="/tmp/unicorn.${APP}.pid"
@mlen
mlen / function.rb
Created December 15, 2012 08:55 — forked from rf-/function.rb
def self.method_missing(name, *args)
name
end
def function(*param_names, &block)
klass = Class.new { attr_accessor :this, *param_names }
this = TOPLEVEL_BINDING.eval('self')
proc do |*params|
context = klass.new
sudo apt-get remove -y xserver-xorg* x11-*
sudo apt-get -y autoremove
sudo apt-get update
sudo apt-get install -y git-core vim build-essential
# then run
raspi-config
# to alocate 1mb to the video driver and you have a nice cheap dev machine
@chemzqm
chemzqm / webpack.js
Last active January 2, 2018 12:05
webpack plugin for tern
// drop this into <tern folder>/plugin
// run `npm i enhanced-resolve` in you tern folder
// add config "plugins": { "webpack": {}} to your .tern_project
// done
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
return mod(require("../lib/infer"), require("../lib/tern"), require("./commonjs"), require)
if (typeof define == "function" && define.amd) // AMD
return define(["../lib/infer", "../lib/tern", "./commonjs"], mod)
mod(tern, tern)
@azet
azet / 9-to-5.txt
Last active July 1, 2018 18:37
9 to 5 [RE: The Fall of Hacker Groups]
So this happened: phrack changed it's format and posted a nice analysis of the
(nowadays missing) hacker community and societal behaviour of hackers in
general: http://phrack.org/papers/fall_of_groups.html
This article reflects a lot of thoughts I've had over the last couple of
months. In a very positive way.
Yea sure, the scene we grew up in changed to what has now become a bullshit
business like any other. Originality is scarce and every time I see SQLi or