Skip to content

Instantly share code, notes, and snippets.

View nekketsuuu's full-sized avatar
🍑
I like peaches!

Takuma Ishikawa nekketsuuu

🍑
I like peaches!
View GitHub Profile
$ sudo ./docker-run.sh kennel
root@nek:/var/work/kennel# ./install.sh
+++ pwd
++ CURRENT_DIR=/var/work/kennel
++++ dirname ./install.sh
+++ cd .
+++ pwd
++ BASE_DIR=/var/work/kennel
+ PREFIX=/opt/wandbox/kennel
+ cd /root/
$ sudo ./run-test.sh crystal-0.23.1
fe2e6459b8055032f88e8bd4da048f3f71cb769be20f062d0a3b2b87920abc19
wait: kennel port...
opened
crystal-0.23.1: {u'status': u'11', u'program_error': u"\x1b[33mUsing compiled compiler at `.build/crystal'\x1b[0m\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\nGC Warning: Failed to expand heap by 8388608 bytes\n
(function() {
var date = new Date();
var year = date.getFullYear();
var month = date.getMonth() + 1;
var url = 'https://github.com/nekketsuuu/*********/wiki/日記%3A%3A' + year.toString() + '年' + month.toString() + '月' + '/_edit';
var editor = window.open(url, '_self');
})();
// This script roughly checks if a markdown file contains unescaped angle brackets.
// Usage: go run check-escape.go <file1> [<file2> ...]
package main
import (
"bufio"
"fmt"
"log"
"os"
"regexp"
$ sudo ./check-config.sh
warning: /proc/config.gz does not exist, searching other paths for kernel config ...
info: reading kernel config from /boot/config-4.10.0-37-generic ...
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- apparmor: enabled and tools installed
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
Release# cmake -DCMAKE_BUILD_TYPE=Release ..
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- The CXX compiler identification is GNU 7.2.0
-- Check for working CXX compiler: /usr/bin/g++-7
-- Check for working CXX compiler: /usr/bin/g++-7 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The C compiler identification is GNU 7.2.0
root@56b234adc7b8:~# cat test.cpp
# include <Siv3D.hpp>
void Main()
{
const Font font(30);
while (System::Update())
{
Circle(Cursor::Pos(), 100).draw();
SATySFi/doc$ make
satysfi doc-primitives.saty -o primitives.pdf
---- ---- ---- ----
target file: 'primitives.pdf'
dump file: 'primitives.satysfi-aux' (will be created)
parsing 'doc-primitives.saty' ...
parsing 'stdja.satyh' ...
parsing 'pervasives.satyh' ...
parsing 'gr.satyh' ...
parsing 'list.satyh' ...

動作例

Click to expand

let () =
  print_endline @@ string_of_int (1 + 1)
;;
@nekketsuuu
nekketsuuu / rs.ml
Created May 4, 2018 01:12
『Recursion Scheme テクニック』 (@eldesh) の内容の一部を OCaml で書きました。
(* general definition of signature using recursion scheme *)
module type TYP = sig
type t
type 'a f
val fmap : ('a -> 'b) -> 'a f -> 'b f
val inj : t f -> t
val prj : t -> t f
end