Skip to content

Instantly share code, notes, and snippets.

View Xinguang's full-sized avatar

Xinguang Wang Xinguang

View GitHub Profile
extension Int {
var days: NSTimeInterval {
let DAY_IN_SECONDS = 60 * 60 * 24
var days:Double = Double(DAY_IN_SECONDS) * Double(self)
return days
}
}
let date = NSDate()
package envy
import (
"flag"
"fmt"
"os"
"strings"
)
// Parse takes a string p that is used
@Xinguang
Xinguang / goplugin.so
Created June 30, 2017 10:04
goplugin
package main
func Add(x, y int) int {
return x + y
}
func Subtract(x, y int) int {
return x - y
}

Keybase proof

I hereby claim:

  • I am Xinguang on github.
  • I am xinguang (https://keybase.io/xinguang) on keybase.
  • I have a public key whose fingerprint is 4E86 2D9B 189A 32DF 5C28 8ED3 BB96 09D2 7930 8792

To claim this, I am signing this object:

@Xinguang
Xinguang / developercertificate.org.md
Created May 18, 2018 10:14
DCO(Developer Certificate of Origin)

Developer Certificate of Origin Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 1 Letterman Drive Suite D4700 San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.