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
%{ | |
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"strings" |
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
<script src=http://unpkg.com/codemirror></script> | |
<script src=http://unpkg.com/codemirror/mode/python/python.js></script> | |
<script src=http://unpkg.com/codemirror/mode/markdown/markdown.js></script> | |
<script src=http://unpkg.com/codemirror/addon/mode/simple.js></script> | |
<link rel=stylesheet href=http://unpkg.com/codemirror/lib/codemirror.css /> | |
<style> | |
.cm-header { | |
display: inline-block; | |
padding: .5em 0 .3em; |
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
<title>標本数の計算</title> | |
<meta name="viewport" content="width=device-width"> | |
<style> | |
body { | |
margin: 2em; | |
} | |
.hint { | |
color: gray; | |
} |
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
package main | |
import ( | |
"image" | |
"image/color" | |
"image/png" | |
"os" | |
"golang.org/x/image/font" | |
"golang.org/x/image/font/basicfont" |
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
const excel = require('exceljs'); | |
let workbook = new excel.Workbook() | |
workbook.creator = 'MacRat'; | |
workbook.created = new Date(2000, 1, 1); | |
workbook.modified = new Date(); | |
let sheet = workbook.addWorksheet('The sheet'); |
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
import dask.dataframe | |
import pandas | |
def kaijo(df, max_=None): | |
result = df | |
if max_ is None: | |
max_ = df.max()[0] |
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
import functools | |
import inspect | |
import typing | |
def istype(obj: typing.Any, typ: type) -> bool: | |
""" | |
>>> istype(1, int) | |
True | |
>>> istype('hoge', int) |
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
no <left> :while 1<return>smile<return>endwhile<return> | |
no <down> :while 1<return>smile<return>endwhile<return> | |
no <up> :while 1<return>smile<return>endwhile<return> | |
no <right> :while 1<return>smile<return>endwhile<return> |
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
package main | |
func Range(length interface{}) (r []interface{}) { | |
for i := 0; i < length.(int); i++ { | |
r = append(r, i) | |
} | |
return | |
} | |
func Map(fun func(interface{}) interface{}, arr ...interface{}) (r []interface{}) { |
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 <stdint.h> | |
int main() { | |
for (uint32_t i=1; i<=30; i++) { | |
uint64_t x = 8825495485607995750u - (i%3>0) * (8825495483553149956u - (((i/10+12336+(i%10<<8))>>(8*(i<10))) - 9621248592211244386u) * (i%5>0)) - 8825495483553153024u*(i%5>0); | |
puts((char*)&x); | |
} | |
} |