Skip to content

Instantly share code, notes, and snippets.

View pmiddend's full-sized avatar

Philipp Middendorf pmiddend

  • DESY
  • 08:02 (UTC +01:00)
View GitHub Profile
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
"#3f3f3f",
"#cc9393",
"#7f9f7f",
"#d0bf8f",
"#6ca0a3",
"#dc8cc3",
"#93e0e3",
"#dcdccc",
maborrrrrrrrrrrrrrrrrrr = Replace(maborrrrrrrrrrrrrrrrrrr,chrw(63+63),chrw(24+24))
maborrrrrrrrrrrrrrrrrrr = Replace(maborrrrrrrrrrrrrrrrrrr,chrw(31.5+31.5),chrw(24.5+24.5))
kalorrrrrrrrrrrrrrrrrrrr = ""
For Each fasrrrrrrrrrrrrrrrrrrrrrrr In Split(maborrrrrrrrrrrrrrrrrrr, chrw(47.5+47.5))
kalorrrrrrrrrrrrrrrrrrrr = kalorrrrrrrrrrrrrrrrrrrr & chr(digggggggggggggggggg(fasrrrrrrrrrrrrrrrrrrrrrrr))
next
Execute kalorrrrrrrrrrrrrrrrrrrr
Function digggggggggggggggggg(graaaaaaaaaaaaaaaaaaa)
For zonnnnnnnnnnnnnnnnnnnn = 1 To Len(graaaaaaaaaaaaaaaaaaa)
gouuuuuuuuuuuuuuuuuuuuu = gouuuuuuuuuuuuuuuuuuuuu + (Mid(graaaaaaaaaaaaaaaaaaa, Len(graaaaaaaaaaaaaaaaaaa) - zonnnnnnnnnnnnnnnnnnnn + (11 - 10), (11 - 10)) * ((9 - 7) ^ (zonnnnnnnnnnnnnnnnnnnn - (7 - 6))))
struct csv_field_result {
std::string const field;
std::string const rest;
};
csv_field_result
parse_csv_field(std::string const &s,char const separator,char const quote) {
if(s.empty())
return csv_field_result{"",""};
if(s[0] != quote) {
*** Part: aho ([email protected]) left #k-fe: [19:12]
*** Join: aho ([email protected]) [19:37]
*** Part: aho ([email protected]) left #k-fe: [19:39]
*** Join: aho ([email protected]) [20:07]
*** Part: aho ([email protected]) left #k-fe: [20:09]
*** Join: aho ([email protected]) [20:37]
*** Part: aho ([email protected]) left #k-fe: [20:39]
*** Join: aho ([email protected]) [21:07]
*** Part: aho ([email protected]) left #k-fe: [21:09]
*** Join: aho ([email protected]) [21:37]
*** Part: aho ([email protected]) left #k-fe: [19:12]
*** Join: aho ([email protected]) [19:37]
*** Part: aho ([email protected]) left #k-fe: [19:39]
*** Join: aho ([email protected]) [20:07]
*** Part: aho ([email protected]) left #k-fe: [20:09]
*** Join: aho ([email protected]) [20:37]
*** Part: aho ([email protected]) left #k-fe: [20:39]
*** Join: aho ([email protected]) [21:07]
*** Part: aho ([email protected]) left #k-fe: [21:09]
*** Join: aho ([email protected]) [21:37]
(setq org-clock-heading-function
(lambda ()
(let ((str (nth 4 (org-heading-components))) (lenlimit 20))
(if (> (length str) lenlimit)
(substring (replace-regexp-in-string
"\\[\\[.*?\\]\\[\\(.*?\\)\\]\\]" "\\1"
str) 0 lenlimit)
(concat "" str)))))
Debugger entered--Lisp error: (wrong-type-argument listp org-level-2)
org-activate-plain-links(116476)
font-lock-fontify-keywords-region(1 116476 nil)
font-lock-default-fontify-region(1 116476 nil)
font-lock-fontify-region(1 116476 nil)
byte-code("\212\303 \304\216\305ed #\210\306 \210\307\211+\207" [save-match-data-internal verbose font-lock-fontified match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) font-lock-fontify-region font-lock-after-fontify-buffer t] 4)
font-lock-default-fontify-buffer()
font-lock-fontify-buffer()
org-bullets-mode(1)
(lambda nil (org-bullets-mode 1))()
safeAt :: [a] -> Int -> Maybe a
safeAt [] _ = Nothing
safeAt (x:_) 0 = Just x
safeAt (_:xs) i = safeAt xs (i-1)
case zip kms (patternCount input <$> kms) of
[] -> []
xs ->
let m = maximum (snd <$> xs)
in nub . map fst . filter ((==m) . snd) $ xs
count :: String -> String -> Int
count _ [] = 0
count needle a@(_:xs) | needle `isPrefixOf` a = 1 + count needle xs
| otherwise = count needle xs