Skip to content

Instantly share code, notes, and snippets.

View yeelone's full-sized avatar
😍

elone yeelone

😍
View GitHub Profile
@yeelone
yeelone / main.go
Created May 8, 2019 14:54
go打包目录
// 参考的https://blog.csdn.net/u011304970/article/details/71131592 ,但原代码有点小BUG,做了点修改。留存这里备忘。
package main
import (
"archive/zip"
"io"
"log"
"os"
"path/filepath"
)
@yeelone
yeelone / stardict-csv-to-postgresql.go
Last active December 29, 2018 16:11
将stardict csv转存到 postgresql的一段golang代码
package main
import (
"bufio"
"database/sql"
"encoding/csv"
"fmt"
"io"
"log"
"os"
@yeelone
yeelone / gist:93572c9f2af1f7f3441a5080515f25eb
Last active January 9, 2018 15:34
surfaceview闪屏代码
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.view.SurfaceHolder
import android.view.SurfaceView
import com.elone.android.ecgtodo.extensions.ctx
import org.jetbrains.anko.startActivity
import android.graphics.Bitmap