I hereby claim:
- I am barometz on github.
- I am barometz (https://keybase.io/barometz) on keybase.
- I have a public key whose fingerprint is 69BF 67E5 AE79 2B08 5A34 3190 C376 D4AF 70DF 39FE
To claim this, I am signing this object:
C:\Users\domin\Documents\Code\declarify\src\function.lalrpop:24:5: 24:48: Ambiguous grammar detected | |
The following symbols can be reduced in two ways: | |
"const" Type "*" | |
They could be reduced like so: | |
"const" Type "*" | |
├─Type─────┘ │ | |
└─Type─────────┘ |
I hereby claim:
To claim this, I am signing this object:
double φ; | |
const double S, f; | |
short buffer[K]; | |
short[] getSamples(int count) { | |
short samples[count]; | |
const double dφ = 2 * π * f / S; | |
for (n = 0..(count-1)) { | |
φ = (φ + dφ) % (2π); | |
int position = floor(φ/(2π) * K); |
{- | |
From http://book.realworldhaskell.org/read/functional-programming.html#id591719 | |
Write a function splitWith that acts similarly to words, but takes a predicate | |
and a list of any type, and splits its input list on every element for which | |
the predicate returns False. | |
-} | |
splitWith :: (a -> Bool) -> [a] -> [[a]] |
class CorePlug(plugbase.Plug): | |
"""Core stuff plug for Shirk. | |
Tasks like "list all loaded plugs" and "what commands are available right | |
now" go here. This is separate from shirk.py because it's a lot cleaner | |
that way, but at the same time this plug will depend a lot on Shirk's | |
internals. | |
""" | |
name = 'Core' |
> // Define the types | |
- [<Measure>] | |
- type J | |
- [<Measure>] | |
- type s | |
- [<Measure>] | |
- type W = J/s;; | |
[<Measure>] | |
type J |
/* | |
* main.c | |
* | |
* Created on: Nov 26, 2012 | |
* Author: dominic | |
*/ | |
#include "RP6ControlLib.h" | |
#include <stdint.h> | |
#include <math.h> |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef unsigned char uchar; | |
typedef unsigned int uint; | |
uint new_ip(uchar one, uchar two, uchar three, uchar four) { | |
uint ret; | |
ret = (one << 24) | (two << 16) | (three << 8) | four; | |
return ret; |
>>> class A: | |
... foo = 1 | |
... def __init__(self): | |
... print self.foo | |
... self.foo = 2 | |
... print self.foo | |
... | |
>>> A.foo | |
1 | |
>>> instance = A() |
>>> anon = lambda x: x + 2 | |
>>> class A: | |
... def __init__(self, f): | |
... self.f = f | |
... | |
>>> a = A(anon) | |
>>> | |
>>> dir(a) | |
['__doc__', '__init__', '__module__', 'f'] | |
>>> a.f(1) |