Skip to content

Instantly share code, notes, and snippets.

View gavin-k's full-sized avatar

lijy gavin-k

  • Beijing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gavin-k on github.
  • I am lijy0717 (https://keybase.io/lijy0717) on keybase.
  • I have a public key ASDtVHlSu8GzbHvzcnL6Mo8zujhfvaNBbbl3KN23EO6vxwo

To claim this, I am signing this object:

@gavin-k
gavin-k / example.puml
Created May 14, 2021 02:00 — forked from QuantumGhost/example.puml
A simple template for PlantUML to draw ER diagram.The basic idea comes from http://plantuml.sourceforge.net/qa/?qa=331/database-modeling
@startuml
' uncomment the line below if you're using computer with a retina display
' skinparam dpi 300
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >>
' we use bold for primary key
' green color for unique
' and underscore for not_null
!define primary_key(x) <b>x</b>
!define unique(x) <color:green>x</color>
!define not_null(x) <u>x</u>
@gavin-k
gavin-k / osx-for-hackers.sh
Last active September 21, 2020 05:07 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@gavin-k
gavin-k / GIF-Screencast-OSX.md
Created December 10, 2015 03:17 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: