Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am wurbanski on github.
  • I am wurbanski (https://keybase.io/wurbanski) on keybase.
  • I have a public key ASC2ONPl44XgRqsgRIFjsQ77BvpomhoO7wt1LRnzdkPKZQo

To claim this, I am signing this object:

@wurbanski
wurbanski / .gitlab-ci.yml
Last active March 19, 2017 20:59
code-your-code-automation
stages:
- build
- test
- github
## Templates
.job_template: &job
tags:
- docker-runner
@wurbanski
wurbanski / gist:87f0ada193e907df6e07
Created January 19, 2015 19:56
noise_this_mofo
def _process(self):
var = self.input.get_energy()
if var > 0:
sigma = np.sqrt(var) * 10 ** (-self._snr / 20)
noise = np.random.normal(loc=0.0, scale=sigma, size=self._config.timeline.shape)
self._noise = Signal(noise, self._config.sample_frequency)
return Signal(self.input.signal + noise, self._config.sample_frequency)
else:
self._noise = Signal(np.zeros(self._config.timeline.shape), self._config.sample_frequency)
return self.input
$ dig google.com AAAA
; <<>> DiG 9.9.4-RedHat-9.9.4-14.el7 <<>> google.com AAAA
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9599
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
@wurbanski
wurbanski / gist:37d30edb4db2896737b2
Last active August 29, 2015 14:02
What is wrong?
int* fun( int* a, int b) {
int i = 0;
i = *a + b;
return *i
}