Skip to content

Instantly share code, notes, and snippets.

View MagnificentPako's full-sized avatar

Paul MagnificentPako

  • Germany
View GitHub Profile
#define CPPHTTPLIB_OPENSSL_SUPPORT
#include <emojicode/runtime/Runtime.h>
#include <emojicode/s/Data.h>
#include <string>
#include <iostream>
#include <sstream>
#include <vector>
#include <zstr.hpp>
linux-vdso.so.1 (0x00007ffd24dba000)
libm.so.6 => /nix/store/681354n3k44r8z90m35hm8945vsp95h1-glibc-2.27/lib/libm.so.6 (0x00007f71f27db000)
libHSwreq-0.5.3.1-6GjEw2Hx399122Ov29H5dp-ghc8.6.4.so => /nix/store/pcrmh3dki4h97ymlvryih3ybl5irbrh3-wreq-0.5.3.1/lib/ghc-8.6.4/x86_64-linux-ghc-8.6.4/libHSwreq-0.5.3.1-6GjEw2Hx399122Ov29H5dp-ghc8.6.4.so (0x00007f71f2710000)
libHSpsqueues-0.2.7.1-DkwSXiYAMy95yfPoy80EiL-ghc8.6.4.so => /nix/store/7z0nbf29v09v4c3j5yi8a61pwv8pw19m-psqueues-0.2.7.1/lib/ghc-8.6.4/x86_64-linux-ghc-8.6.4/libHSpsqueues-0.2.7.1-DkwSXiYAMy95yfPoy80EiL-ghc8.6.4.so (0x00007f71f268f000)
libHSlens-aeson-1.0.2-9pUnKAMRHDeHVo9xqU1RPu-ghc8.6.4.so => /nix/store/8rwss4kkka15rvlgxqwwcmbi62snl84w-lens-aeson-1.0.2/lib/ghc-8.6.4/x86_64-linux-ghc-8.6.4/libHSlens-aeson-1.0.2-9pUnKAMRHDeHVo9xqU1RPu-ghc8.6.4.so (0x00007f71f2632000)
libHSbase16-bytestring-0.1.1.6-17atVnUhDnM13pAkKbwL6I-ghc8.6.4.so => /nix/store/arzrjmg7zq0a33fp8jcy4ngs7pjsq1cz-base16-bytestring-0.1.1.6/lib/ghc-8.6.4/x86_64-linux-ghc-8.6.4/libHSb

title: "Intensivtag Mathe" date: \today titlepage: true titlepage-color: "2c3e50" titlepage-text-color: "ecf0f1" titlepage-rule-color: "f1c40f" toc-own-page: true toc: true lang: de

src/Sources/RRL.hs:22:14: error:
• Ambiguous type variable ‘m0’ arising from a use of ‘simpleAsyncFetch’
prevents the constraint ‘(MonadIO m0)’ from being solved.
Relevant bindings include
fetchRRL :: S.Session -> Fetch FictionSource m0 a0
(bound at src/Sources/RRL.hs:22:1)
Probable fix: use a type annotation to specify what ‘m0’ should be.
These potential instances exist:
instance [safe] MonadIO IO -- Defined in ‘Control.Monad.IO.Class’
...plus two instances involving out-of-scope types
src/Sources/RRL.hs:22:12: error:
• Could not deduce (MonadIO ((->) (ASeq FictionSource a)))
arising from a use of ‘liftIO’
from the context: MonadIO m
bound by the type signature for:
fetchRRL :: forall (m :: * -> *) a.
MonadIO m =>
Fetch FictionSource m a
at src/Sources/RRL.hs:21:1-48
• In the first argument of ‘(>>=)’, namely ‘liftIO S.newSession’
extractContent = concat
. map (++ "\n")
. filter ((> 1) . length)
. map (cleanString)
. map (innerText)
. map (return)
. takeWhile (~/= TagOpen "" [("class", "bold uppercase text-center")])
. dropWhile (~/= TagOpen "div" [("class", "chapter-inner chapter-content")])
import re
import sys
import os.path
def xor(data, key):
decoded = "U"
for i in range(1, len(data)):
decoded += chr(data[i] ^ key[(i-1) % len(key)])
return decoded
import re
import sys
import os.path
def xor(data, key):
l = len(key)
decoded = "U"
for i in range(1, len(data)):
decoded += chr(data[i] ^ key[(i-1) % l])
import re
import sys
import os.path
def xor(data, key):
l = len(key)
decoded = "U"
for i in range(1, len(data)):
decoded += chr(data[i] ^ key[(i-1) % l])
import re
import sys
import os.path
def xor(data, key):
l = len(key)
decoded = "U"
for i in range(1, len(data)):
decoded += chr(data[i] ^ key[(i-1) % l])