Skip to content

Instantly share code, notes, and snippets.

View giruzou's full-sized avatar

DrqYuto(みなと giruzou

View GitHub Profile
int num = 50;
PVector[] points = new PVector[num];
void setup() {
size(320, 240);
colorMode(HSB, 360, 100, 100, 100);
noStroke();
for (int i = 0; i < points.length; i++) {
float x = random(width);
float y = random(height);
# coding: UTF-8
import urllib.request
from bs4 import BeautifulSoup
# アクセスするURL
url = "http://www.nikkei.com/"
# URLにアクセスする htmlが帰ってくる → <html><head><title>経済、株価、ビジネス、政治のニュース:日経電子版</title></head><body....
html = urllib.request.urlopen(url)
def f(x)
if x
unless x
p :foo
end
end
end
TracePoint.trace(:line) do |tp|
if tp.lineno == 2
@giruzou
giruzou / macvim-kaoriya-cli.md
Created February 24, 2018 17:16 — forked from mamemomonga/macvim-kaoriya-cli.md
macvim-kaoriyaをコンソールで起動する

macvim-kaoriyaをターミナルから起動する

OSX El CapitanのデフォルトのVimは7.3で、7.4に依存するdeinを使いたくなったのでKaoriYa Vimをコンソールから利用する方法。

前提

  • macvim-kaoriya 導入済み
  • /bin にスクリプトを入れる。/bin へパスが通っていて、それが優先的に読み込まれていること

.bashrcの例

export PATH=$HOME/bin:$PATH

@giruzou
giruzou / Benchmark test of Monte Carlo calculation of pi.ipynb C/Julia vs. gcc/Benchmark test of Monte Carlo calculation of pi.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@giruzou
giruzou / Lury.md
Created March 4, 2018 00:58 — forked from nanase/Lury.md
Lury 構想まとめ

![Lury][lury] 構想まとめ

※ 項目の名前は適当

※ 実装してみたい全ての機能を記述しているわけではありません

※ サンプルコードは古い構想を含んでいるかもしれません。注意して読んでください

目次

@giruzou
giruzou / Lury.md
Created March 4, 2018 00:59 — forked from nanase/Lury.md
Lury 構想まとめ

![Lury][lury] 構想まとめ

※ 項目の名前は適当

※ 実装してみたい全ての機能を記述しているわけではありません

※ サンプルコードは古い構想を含んでいるかもしれません。注意して読んでください

目次

puts gets.split.map(&:to_i).inject(:+)
puts gets.split.map(&:to_i).sum.to_s.slice(-1)
puts gets.split.join(",")