Skip to content

Instantly share code, notes, and snippets.

@meganehouser
meganehouser / MeguroLYAHFGG#1.ipynb
Last active March 11, 2019 11:00
MeguroLYAHFGG#1(すごいHaskell本を原書で読む会 )のノート。@nnm_techさんがまとめたものに実行結果と補足を追加したものです。
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meganehouser
meganehouser / requirements.txt
Created March 4, 2019 13:56
Working requiements for iHaskell at March 04, 2019
appnope==0.1.0
attrs==19.1.0
backcall==0.1.0
bleach==3.1.0
decorator==4.3.2
defusedxml==0.5.0
entrypoints==0.3
ipykernel==5.1.0
ipython==7.3.0
ipython-genutils==0.2.0
@meganehouser
meganehouser / rustmemo.md
Last active April 25, 2022 16:19
Rustの個人的なメモ

Rustメモ

リテラル

  • 数字
let n1: f32 = 1.0f32;
let n2: isize = 0xF1A; // 16進数
let n3: isize = 0b11001; // 2進数
@meganehouser
meganehouser / main.rs
Created July 12, 2018 12:19
nannou sample
extern crate nannou;
use std::f32::consts::PI;
use nannou::prelude::*;
use nannou::math::pt2;
use nannou::geom::Line;
use nannou::color::Rgba;
use nannou::event::Key;
const WIN_WIDTH: u32 = 640;
@meganehouser
meganehouser / app.py
Last active February 10, 2018 04:21
ゴミの日をGoogle homeで教えてもらう
# coding: utf-8
from datetime import date
from pathlib import Path
import os
import hashlib
import threading
import time
from wsgiref import simple_server
# coding: utf-8
import hashlib
import json
from textwrap import dedent
from time import time
from uuid import uuid4
from urllib.parse import urlparse
from flask import Flask, jsonify, request
@meganehouser
meganehouser / Cargo.toml
Last active January 21, 2019 19:51
Simple http proxy on hyper and tokio
[package]
name = "proxy"
version = "0.1.0"
authors = ["meganehouser"]
[dependencies]
tokio-core = "0.1"
tokio-io = "0.1"
hyper = { git = "https://github.com/hyperium/hyper", branch="master"}
hyper-tls = { git = "https://github.com/hyperium/hyper-tls", branch="master"}
class Thunk:
value = None
def __init__(self, value):
self.value = value
class Lambda:
fn = None
def __init__(self, fn):
self.fn = fn
@meganehouser
meganehouser / ponyrun.sh
Last active January 15, 2016 13:45
ponylang build & run
#! /usr/bin/env bash
set -e
ponyc
f=$(basename $PWD)
./$f
@meganehouser
meganehouser / megro.py
Created December 23, 2015 12:25
get new books information from megro lib
# coding: utf-8
from enum import Enum
import requests
from os import path
from html.parser import HTMLParser
from time import sleep
from random import randint
from jinja2 import Environment, FileSystemLoader
import datetime