Skip to content

Instantly share code, notes, and snippets.

View dom96's full-sized avatar
🛤️

Dominik Picheta dom96

🛤️
View GitHub Profile
type
TMaybe[T] = object
case empty: Bool
of False: value: T
else: nil
proc Just*[T](val: T): TMaybe[T] =
result.empty = False
result.value = val
Hello,
Thank you for reaching out. We appreciate and understand your concerns. At this time the evidence suggest that this activity was targeting a specific customer. We are unable to release any additional details regarding this incident at this time, as there is an ongoing investigation.
We have no comment regarding ryan*'s comments in #linode. You are of course free to take any steps you deem prudent or necessary to ensure the integrity of your online presence.
I am sorry that we cannot provide more information at this time. As always feel free to contact us at any time with any future concerns.
Regards,
Quintin
type
Foo = object
value: int
class Foo:
proc init(v) =
value = v
proc bar =
echo value
type
@dom96
dom96 / fib-gen.nim
Last active December 13, 2015 20:18
template times(count: int, body: stmt) =
for i in 1 .. count:
body
iterator fibGen: int {.closure.} =
var
a = 0
b = 1
result = 0
while true:
This file has been truncated, but you can view the full file.
execve("/usr/bin/steam", ["steam"], [/* 53 vars */]) = 0
brk(0) = 0x21e2000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=231428, ...}) = 0
mmap(NULL, 231428, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4a862f5000
close(3) = 0
open("/usr/lib/libreadline.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200V\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=326724, ...}) = 0
This file has been truncated, but you can view the full file.
execve("/usr/bin/steam", ["steam"], [/* 53 vars */]) = 0
brk(0) = 0x1137000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=231428, ...}) = 0
mmap(NULL, 231428, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2a47c4f000
close(3) = 0
open("/usr/lib/libreadline.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200V\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=326724, ...}) = 0
# Nimrod Maybe example
proc getKey(table: PStringTable, name: string): TMaybe[string] =
if table.hasKey(name):
return Just(table[name])
else:
return Nothing
proc useValue(value: string): TMaybe[string] =
echo(value)
Mr Harper,
As an anonymous student of Portadown College, I feel concerned about the attitudes of certain teachers towards minority groups within classes. I feel these conservative views are endangering a sense of tolerance that should be revered within educational institutions. Besides being unprofessional for a teacher to endorse their personal and religious opinions to students in classes, the perceived antilocution could be potentially offensive to pupils, both those who belong to minorities and those who don’t.
I am particularly concerned about the attitudes of a teacher in the Chemistry department, Mr Spence, who frequently makes negative references to homosexuality. This may be hinted or clear. Recently, when teaching about the molecular structure of water, upon saying that the water molecule is bent in shape, he started to smile, quickly referred to gay people, and I quote, “Unfortunately by intelligent design, God made the world to be 70% covered in bent molecules,” going on to make reference to homo
[dom@EliteArch aporia]$ cat aporia.nim | grep -v '^$' | grep '^\s' | sed 's/\S//g' | sort -u | sed 's/\(.*\)/"\1"/'
" "
" "
" "
" "
" "
" "
" "
" "
" "