Skip to content

Instantly share code, notes, and snippets.

View S-Shimotori's full-sized avatar

SHIMOTORI Shigure S-Shimotori

View GitHub Profile
@S-Shimotori
S-Shimotori / text.md
Last active June 27, 2020 01:28
あつまれどうぶつの森

マイル旅行券をください だいたいタダであげます

カッコ内はたぬきショッピングで確認できるバリエーション名

注文可能家具は1枚につき3つとか4つとかあげます。

無事にマイル旅行券で交配島に行けた場合、後日お礼として青いバラの株をお送りできるかもしれませんがこればかりは運と日数を要するので期待しないでください v1.2.0では行けないらしいので。。

カテゴリ:家具

import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// static images
let lightImage = UIImage(named: "LightImage")!
let darkImage = UIImage(named: "DarkImage")!

Type Checker Design and Implementation

https://github.com/apple/swift/blob/cc852042c9da5892fb5cdedfb6cf49740004755c/docs/TypeChecker.rst

Purpose

このドキュメントでは,Swiftにおける型検査器の設計と実装について説明する. 型検査器の修正,拡張,改良をしたい開発者,あるいは型検査器がどのように働くかを深く理解したいだけの開発者に向けたものである. Swiftに精通していることが前提である.

Regions

プログラムをクラッシュさせたりセキュリティを侵害する別の潜在的な原因は,ダングリングポインタを参照解除することで,これは割り当てが解除されたストレージへのポインタのことである.このエラーはすぐに現れない可能性があるので,油断のならないバグである.例えば,次のCのコードを見てみよう:

struct Point {int x; int y;};

struct Point *newPoint(int x,int y) {
  struct Point result = {x,y};
 return &result;

ABCs vs. Alternatives

In this section I will attempt to compare and contrast ABCs to other approaches that have been proposed.

ABCs vs. Duck Typing

ABCの導入はDuck Typingの終わりを意味するのか?私はそうは思わない。Pythonは __getitem__ メソッドが定義されている時にクラスが BasicMappingSequence に由来することを求めないし、x がABCのインスタンスであることを x[y] 構文が求めることもない。書き込みメソッドを持つ限り"file-like"なオブジェクトを sys.stdout に結びつけることが未だ可能である。

もちろん、適切な基底クラスから派生させるために使用者を励ます餌は存在する;これらは、特定の機能のデフォルトの実装からmappingとsequenceを区別するための改良された機能に変わる。しかしそこにスティックは存在しない。もし hasattr(x, "__len__") が動けば素晴らしい!ABCはmappingとsequenceの区別といったPython2に良い解決法が存在しない問題を解決するためのものである。

Swift: Associated Types

I Want a Type-alee-uss-ess-ess for Christmas Russ Bishop January 05, 2015

Associated Types Series

  • Swift Associated Types

Ownership(所有権)を理解する

OwnershipはRustで最も独特な機能であり、ガベージコレクションなしにRustのメモリ安全を保証するものである。 したがって、RustでどのようにOwnershipが動作するかを理解することは重要である。本章では、Ownershipはもちろん、関連するいくつかの機能 - borrowing(借用)、slices、Rustによるメモリへのデータ格納 - について述べる。

@S-Shimotori
S-Shimotori / sslcd.dot
Last active May 8, 2020 04:20
Swift Standard Library Correlation Diagram
digraph "Swift Standard Library" {graph [charset = "UTF-8";label = "Swift Standard Library";labelloc = t;labeljust = c;bgcolor = "#000000";fontcolor = white;fontsize = 18;style = filled;rankdir = TB;margin = 0.2;splines = spline;ranksep = 7;nodesep = 2];node [style = "solid,filled";fontsize = 16;fontcolor = white;fontname = "Migu 1M";fixedsize = false;height = 0.6;width = 1.2;shape = box];edge [style = solid;fontsize = 14;fontcolor = white;fontname = "Migu 1M";color = white;labelfloat = true;labeldistance = 10;labelangle = 100];subgraph cluster_979385246 {UTF16 [fillcolor = "#e95464"];UTF32 [fillcolor = "#e95464"];UTF8 [fillcolor = "#e95464"];UnicodeCodec [fillcolor = "#727171";height = 3;width = 3];graph [labelloc = t;labeljust = c;margin = 30;style = "filled,dashed";fillcolor = "#000000";color = "#ffffff";label = "UnicodeCodec Family"]};subgraph cluster_1347124626 {subgraph cluster_2120525211 {LazyBidirectionalCollection [fillcolor = "#e95464"];LazyCollection [fillcolor = "#e95464"];LazyDropWhileBidirection
@S-Shimotori
S-Shimotori / kernels_ja.rst
Last active November 11, 2016 03:01
jupyter/jupyter_client/docs/kernels_ja.rst
Making kernels for Jupyter
Jupyterカーネルの作成

A 'kernel' is a program that runs and introspects the user's code. IPython カーネルとは、ユーザの書いたコードを実行し、内部状態を確認するためのプログラムです。IPythonは includes a kernel for Python code, and people have written kernels for