Skip to content

Instantly share code, notes, and snippets.

@meganehouser
meganehouser / process3dGraph.py
Created February 6, 2012 13:24
This is a script which draws the amount of CPU used and memory usage of a process to a 3D graph.
#coding:utf-8
import psutil
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
TIME_NUM = 90
FRAMES = 360
@meganehouser
meganehouser / stars.py
Created December 2, 2019 04:09
stars
import itertools
stars = []
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
@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 / httpd.py
Created February 29, 2020 14:07 — forked from daimatz/httpd.py
SimpleHTTPServer with custom headers (Python3)
#!/usr/bin/env python3
import sys
from http.server import (
SimpleHTTPRequestHandler,
HTTPServer,
test,
)
@meganehouser
meganehouser / snowflake.py
Last active December 2, 2019 15:29
snowflake
def draw_branch(branch_len, direction):
pushMatrix()
rotate(direction * PI / 3)
line(0, 0, branch_len, 0)
popMatrix()
def setup():
size(500, 500)
background(30, 30, 255)
strokeCap(ROUND)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meganehouser
meganehouser / MeguroLYAHFGG-3.ipynb
Created May 19, 2019 05:06
Meguro.LYAHFGG#3 Note.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meganehouser
meganehouser / MeguroLYAHFGG-3.ipynb
Created May 19, 2019 05:06
Meguro.LYAHFGG#3 Note.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@meganehouser
meganehouser / MeguroLYAHFGG-3.ipynb
Created May 19, 2019 05:06
Meguro.LYAHFGG#3 Note.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.