Skip to content

Instantly share code, notes, and snippets.

View MagnificentPako's full-sized avatar

Paul MagnificentPako

  • Germany
View GitHub Profile
#!/usr/bin/env sh
sed "y/,.:;!?\"'\`^~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/,.:;!?"'`^~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/"
server {
server_name ipfsup.stride.press;
location / {
proxy_pass http://127.0.0.1:8088;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
src/App.hs:61:18: error:
• Couldn't match type ‘[]’
with ‘Web.Scotty.Internal.Types.ActionT T.Text IO’
Expected type: Web.Scotty.Internal.Types.ActionT T.Text IO [String]
Actual type: [[String]]
• In a stmt of a 'do' block:
names <- mapM
(\ h
-> do n <- liftIO $ Data.Cache.lookup cache h
name <- case n of
src/App.hs:61:18: error:
• Couldn't match type ‘[]’
with ‘Web.Scotty.Internal.Types.ActionT T.Text IO’
Expected type: Web.Scotty.Internal.Types.ActionT T.Text IO [Char]
Actual type: [[Char]]
• In a stmt of a 'do' block:
names <- mapM
(\ h
-> do n <- liftIO $ Data.Cache.lookup cache h
name <- case n of
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module App (app) where
import Control.Monad.IO.Class
import Data.Aeson.Types (Result (Success))
import qualified Data.ByteString.Char8 as BS
import Data.Cache
import qualified Data.HashMap.Strict as H
--------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad (forM_)
import Data.List (isSuffixOf, lines)
import Data.Monoid (mappend)
import Hakyll
import System.FilePath (takeBaseName, takeDirectory, (</>))
--------------------------------------------------------------------------------
main :: IO ()
TAG_Compound(''):
TAG_Compound('Level'):
TAG_String('Status'): 'full'
TAG_Long('zPos'): 9
TAG_Long('LastUpdate'): 24
TAG_Int_Array('Biomes'): 256 Elements
TAG_Long('InhabitedTime'): 0
TAG_Long('xPos'): 2
TAG_Compound('Heightmaps'):
TAG_Long_Array('OCEAN_FLOOR'): 36 Elements
hello worldname Bananrama
#include <emojicode/runtime/Runtime.h>
#include <emojicode/s/Data.h>
#include <string>
#include <iostream>
#include <sstream>
#include <vector>
#include <zstr.hpp>
extern "C" s::Data* decompress(s::Data* data) {
std::stringstream ss;
==7544== Memcheck, a memory error detector
==7544== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==7544== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==7544== Command: ./result/main
==7544==
==7544== Invalid read of size 8
==7544== at 0x416D64: ejcReleaseMemory (in /nix/store/l0p7r8rd51a4h18dnxf7996y870db1n0-test/main)
==7544== by 0x416CBD: ejcRelease (in /nix/store/l0p7r8rd51a4h18dnxf7996y870db1n0-test/main)
==7544== by 0x404A2E: fn_1f3c1 (in /nix/store/l0p7r8rd51a4h18dnxf7996y870db1n0-test/main)
==7544== by 0x900FFFFFFFFFFFF: ???