Skip to content

Instantly share code, notes, and snippets.

View caixw's full-sized avatar
💭
失业中......

caixw caixw

💭
失业中......
View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@caixw
caixw / date-to-unix-golang
Created December 17, 2015 14:26
通过golang将日期格式转换成unix时间戳,直接使用数据库内置函数,1970年之前的会被重置为零
// Copyright 2015 by caixw, All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.
package main
import (
"strings"
"time"