Skip to content

Instantly share code, notes, and snippets.

View Nyoho's full-sized avatar
:octocat:
GitHubing

北䑓如法 Nyoho

:octocat:
GitHubing
View GitHub Profile
@Nyoho
Nyoho / 2016-11-29-pokemon-go-evalution-list.org
Last active July 23, 2017 02:19
しあわせたまご <2016-11-29 Tue> 進化リスト

<2016-11-29 Tue>

進化リスト

ポッポ全部
コラッタ全部しなかった
キャタピー867-9111
アーボ9331
ニドラン♀889-9112段階

Keybase proof

I hereby claim:

  • I am nyoho on github.
  • I am nyoho (https://keybase.io/nyoho) on keybase.
  • I have a public key ASAujvCSbtY4obAIhR2aElJ3jj3WdZySfmNc0u6r3ZjaZgo

To claim this, I am signing this object:

@Nyoho
Nyoho / nginx-php.conf
Created August 10, 2016 15:11
nginx の PHP 設定
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
root /var/www/hogehogeserver;
index index.html index.htm index.php;
server_name hogehogeserver.example.net;
location / {
@Nyoho
Nyoho / lti-nginx.conf
Last active May 17, 2018 07:26
nginx setting for LTI reverse proxy
server {
listen 80;
listen [::]:80;
server_name lti.nyoho.jp;
root /var/www/lti.nyoho.jp;
location /.well-known/acme-challenge/ { allow all; }
location / { return 301 https://$host$request_uri; }
}
server {
n = 2;
b = 5;
BlockRandom[SeedRandom[1, Method -> "MersenneTwister"];
a = # + 1 & /@
Table[IntegerDigits[RandomInteger[b^n - 1], b, n], 100]]
a // MatrixForm
@Nyoho
Nyoho / random_problem.rb
Created May 1, 2016 04:57
重複のない整数対の配列を作る
def nn
(rand * 5).to_i + 1
end
def random_problem(n)
a = []
while a.length < n do
a.push [nn,nn]
a.uniq!
end
@Nyoho
Nyoho / New
Created April 13, 2016 14:02
UnixBench
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
4 000 Based on the Byte Magazine Unix Benchmark
44 00 0
@Nyoho
Nyoho / get-swift-pkg
Last active April 13, 2016 03:37 — forked from jpmartha/get-swift-pkg
A Shell to download and install Swift Development Snapshots from Swift.org
#!/usr/bin/env bash
DEVELOPMENT_SNAPSHOTS_PATH=https://swift.org/builds/development/xcode
DEVELOPMENT_SNAPSHOTS_PREFIX=swift-DEVELOPMENT-SNAPSHOT-
echo
if [ -z "$1" ]; then
echo "OVERVIEW: Download and install Swift Development Snapshots from Swift.org."
echo
@Nyoho
Nyoho / conftest.c
Last active April 5, 2016 07:36
ldd ~/local/lib/libcurl.so
/* confdefs.h. */
#define PACKAGE_NAME "git"
#define PACKAGE_TARNAME "git"
#define PACKAGE_VERSION "2.8.1"
#define PACKAGE_STRING "git 2.8.1"
#define PACKAGE_BUGREPORT "[email protected]"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
@Nyoho
Nyoho / AmazonBookInfo.js
Created February 3, 2016 06:15
Amazon.co.jpの書籍情報をコピーするときに便利なブックマークレット
javascript:(function()%7Bvar%20a=document.getElementById('booksTitle').innerText;var%20b=document.getElementsByClassName('bucket');for(i=0;i<b.length;i++)if(/登録情報/i.test(b[i].innerHTML))var%20r='■%20'+a+b[i].innerText;r=r.replace(/おすすめ[\s\S]*らせる\n/,'');b=document.getElementsByTagName('b');for(i=0;i<b.length;i++)if(/ISBN-10/i.test(b[i].innerHTML))is=b[i].parentNode.innerHTML.match(/(\d{10})/);var%20e=document.createElement('textarea');e.style.width='100%25';e.value=r+'http://www.amazon.co.jp/dp/'+is[1]+'/\n';document.body.insertBefore(e,document.body.firstChild);e.focus();e.select();e.ondblclick=function()%7Be.parentNode.removeChild(e);%7D;e.oncopy=function()%7BsetTimeout(function()%7Be.parentNode.removeChild(e);%7D,1);return%20true;%7D%7D)()