たとえば JSONからid だけ読み込んで 内部的に生成されたasciiなstringと差分のリストを取得したいとかを想定しているのですが、 json.load()でunicodeに変換されないようにしたい!というだけなのに意外にちょっとした手間がかかるのでメモしておきます。
with open(file_path, 'r') as f:
socat Examples | |
=============== | |
* 注意 | |
- SYSTEM で : を使う時は必ずエスケープすること | |
* 相手に接続 | |
# telnet, netcat, socat それぞれの場合 | |
$ socat - TCP:127.0.0.1:8000 |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
digraph autoconf_automake { | |
graph [ fontname = "Helvetica" fontsize = 12 ] | |
node [ fontname = "Helvetica" fontsize = 12 shape = "box" | |
style=filled fillcolor=palegreen | |
] | |
edge [ fontname = "Helvetica" fontsize = 12 ] | |
aclocal_m4 [label="aclocal.m4"] | |
config_h_in [label="config.h.in"] | |
config_h [label="config.h"] |
誰かこれ↓の現状をご存知ないでしょうか? | |
https://web.archive.org/web/20090228024115/http://blogs.sun.com/reiko/entry/%E3%82%B9%E3%82%BF%E3%82%A4%E3%83%AB%E3%82%AC%E3%82%A4%E3%83%89 | |
その他、翻訳する人が最初に読んでおいた方がよさそうなもの。 | |
https://web.archive.org/web/20090228024326/http://blogs.sun.com/reiko/entry/shaped_window_%E3%81%AF%E3%81%A9%E3%81%86%E8%A8%B3%E3%81%99_how_would | |
https://web.archive.org/web/20090301215629/http://blogs.sun.com/reiko/entry/%E5%8F%97%E5%8B%95%E6%85%8B%E3%81%AE%E7%BF%BB%E8%A8%B3 | |
https://web.archive.org/web/20090228050234/http://blogs.sun.com/reiko/entry/%E7%BF%BB%E8%A8%B3%E3%81%AE%E5%93%81%E8%B3%AA | |
https://web.archive.org/web/20090301135955/http://blogs.sun.com/reiko/entry/%E6%80%9D%E3%81%84%E3%82%84%E3%82%8A%E3%81%AE%E3%81%82%E3%82%8B%E7%BF%BB%E8%A8%B3 |
package main | |
import ( | |
"bufio" | |
"bytes" | |
"errors" | |
"fmt" | |
"log" | |
"net" | |
"os" |
// ==UserScript== | |
// @name Stop Twitter Keyboard Shortcuts | |
// @namespace http://www.ns-koubou.com/ | |
// @include http://twitter.com/* | |
// @include https://twitter.com/* | |
// @include http://*.twitter.com/* | |
// @include https://*.twitter.com/* | |
// @run-at document-start | |
// @version 3 | |
// @grant none |
駆け出しのサーバー寄りインフラエンジニアが読むべき各種ドキュメント | |
* 情報系の専門教育を受けていない、あるいは座学をサボってきた人向け。……と思っていたが、これらを全域カバーするレベルで座学をマヂにやっている人というのはあんまり存在しないかもしれない&微妙に属性が違うので、これはこれで必須。 | |
* 1年目が終わるまでにこれぐらいは読んで&軽く実践しておけると望ましい。 | |
* 3年目すぎてもこれらが把握できてなければ相当深刻にヤバいかもしれないが、理想が高すぎるかもしれない。 | |
* 5年目ぐらいには何とか全部読んでいてほしいなぁ……ぐらい。 | |
できるようになっているべきこと | |
================================ |
package main | |
import ( | |
"log" | |
"os" | |
"syscall" | |
) | |
func main() { | |
f, err := os.Open("not-found-file.txt") |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2014 Hayaki Saito <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |