Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#! nix-shell -i runhaskell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.shqq])" | |
{-# LANGUAGE QuasiQuotes #-} | |
import System.ShQQ (sh) | |
import System.Environment (getArgs) | |
parseOp :: Num a => Char -> a -> a -> a | |
parseOp '+' = (+) | |
parseOp '-' = (-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <wchar.h> | |
#include <locale.h> | |
#include <stdlib.h> | |
#include <termios.h> | |
#include <unistd.h> | |
static int MapSizeRow = 10 + 2; //map size with boundaries in vertical direction | |
static int MapSizeCol = 20 + 2; //map size with boundaries in horizontal direction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Message -> State -> State | |
measure updateRecv :: Int -> Int -> Int | |
measure updateSend :: Int -> Int -> Int | |
undefined as rforall a. a | |
undefined = 0 | |
assert :: {v:Bool | v} -> Unit | |
assert = \tru -> Unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- tick and tock with session types in Mist | |
-- Message -> State -> State | |
measure updateRecv :: Int -> Int -> Int | |
measure updateSend :: Int -> Int -> Int | |
undefined as rforall a. a | |
undefined = 0 | |
assert :: {v:Bool | v} -> Unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE TypeFamilies, DeriveFunctor #-} | |
module Expr where | |
import Data.Functor.Foldable | |
data ExprF a | |
= ConstF Double | |
| AddF a a | |
| SubF a a | |
| MulF a a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#toolbar-menubar[inactive] + #TabsToolbar { | |
//visibility: collapse; | |
} | |
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { | |
display: none; | |
} | |
splitter { | |
padding: 5px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Hide various elements */ | |
#back-button[disabled = "true"], | |
#forward-button[disabled = "true"], | |
#new-tab-button, | |
.scrollbutton-down, | |
.scrollbutton-up | |
{ display: none !important; } | |
/* Hide splitter, when using Tree Style Tab. */ | |
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] + #sidebar-splitter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim: foldmethod=marker foldlevel=0 | |
" {{{ Plugins | |
if has("nvim") | let path=$HOME."/.config/nvim/autoload/plug.vim" | |
else | let path=$HOME."/.vim/autoload/plug.vim" | |
endif | |
function! MyOnBattery() | |
if filereadable("/sys/class/power_supply/ADP0/online") | |
return readfile('/sys/class/power_supply/ADP0/online') == ['0'] | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#! nix-shell -i runhaskell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.shqq])" | |
{-# LANGUAGE QuasiQuotes #-} | |
import System.ShQQ (sh) | |
import System.Environment (getArgs) | |
parseOp :: Num a => Char -> a -> a -> a | |
parseOp '+' = (+) | |
parseOp '-' = (-) |
NewerOlder