Skip to content

Instantly share code, notes, and snippets.

@heqichang
heqichang / copy_image.go
Last active August 27, 2019 08:40
过滤出所有图片文件
package main
import (
"flag"
"fmt"
"io"
"io/ioutil"
"os"
"path"
"strings"
In cellForRow offset: (0.0, 0.0)
In cellForRow offset: (0.0, 0.0)
In cellForRow offset: (0.0, 0.0)
In cellForRow offset: (0.0, 0.0)
In cellForRow offset: (0.0, 0.0)
In scroll: (0.0, 4.0)
In scroll: (0.0, 20.5)
In scroll: (0.0, 39.5)
In scroll: (0.0, 53.0)
In scroll: (0.0, 65.0)
protocol Coding {
func encode(withEncoder encoder: NSCoder)
static func decode(withDecoder decoder: NSCoder) -> Self
// 以下はProtocol Extensionで実装済み
var codingObject: CodingHelperClass<Self> { get }
func archive() -> NSData
@heqichang
heqichang / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console