This file contains hidden or 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
| rem evernote2md | |
| rem https://github.com/wormi4ok/evernote2md/tree/master | |
| rem を利用して、windowsで複数のenexファイルを処理するためのコマンドファイル | |
| rem ただしフォルダ内にあるenexファイルを展開することはこのコマンドファイルでは出来ない | |
| rem Thank you. https://orangeclover.hatenablog.com/entry/20101004/1286120668 | |
| @echo off | |
| for %%f in (*.enex) do call :GET_FILENAME "%%f" | |
| GOTO :END |
This file contains hidden or 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
| s += val + ++s; 17 | |
| s += val + s++; 16 | |
| a = 2; | |
| a++; 3 | |
| a = 2; | |
| ++a; 3 |
This file contains hidden or 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 <stdlib.h> | |
| void main(){ | |
| int s = 6; | |
| int val = 3; | |
| s += val + ++s; | |
| printf("s += val + ++s; %d\n\n", s); |
This file contains hidden or 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
| # 0~(n-1)までの無限ループ(n-1の次に0にする方法)の書き方 | |
| a = 0 | |
| n = 5 | |
| 20.times do |x| | |
| a %= n | |
| puts a | |
| a += 1 | |
| end |
This file contains hidden or 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
| upstream websocket { | |
| server localhost:9141; | |
| } | |
| server { | |
| listen 443 ssl; | |
| ssl on; | |
| ssl_certificate /etc/nginx/certs/electrum-mona.org.pem; | |
| ssl_certificate_key /etc/nginx/certs/electrum-mona.org.key; | |
| ssl_client_certificate /etc/nginx/certs/cloudflare.crt; | |
| ssl_verify_client on; |
This file contains hidden or 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
| source 'https://rubygems.org/' | |
| gem 'sinatra' | |
| gem 'omniauth-twitter' | |
| gem 'json' | |
| gem 'twitter' | |
| gem 'dotenv' | |
| gem 'thin' |
This file contains hidden or 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" | |
| "strconv" | |
| ) | |
| type Me struct { | |
| name string |
This file contains hidden or 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
| #参考:[Ruby Bool値かどうか型チェックしたい。ついでにis_bool?メソッドを作ってみた。 - かもメモ](https://chaika.hatenablog.com/entry/2016/10/19/153728) | |
| def analysis_hash(hash) | |
| #puts "h: #{hash.class.to_s}" | |
| case hash.class.to_s | |
| when "String" | |
| puts " String" | |
| return | |
| when "Integer" |
This file contains hidden or 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
| use std::error::Error; | |
| use std::fs::File; | |
| use std::io::prelude::*; | |
| use std::path::Path; | |
| use std::env; | |
| fn main() { | |
| let args: Vec<String> = env::args().collect(); | |
| let filename = &args[1]; |
This file contains hidden or 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
| Latency Comparison Numbers | |
| -------------------------- | |
| L1 cache reference/hit 1.5 ns 4 cycles | |
| Floating-point add/mult/FMA operation 1.5 ns 4 cycles | |
| L2 cache reference/hit 5 ns 12 ~ 17 cycles | |
| Branch mispredict 6 ns 15 ~ 20 cycles | |
| L3 cache hit (unshared cache line) 16 ns 42 cycles | |
| L3 cache hit (shared line in another core) 25 ns 65 cycles | |
| Mutex lock/unlock 25 ns | |
| L3 cache hit (modified in another core) 29 ns 75 cycles |
NewerOlder