Skip to content

Instantly share code, notes, and snippets.

View kongscn's full-sized avatar
💭
I may be slow to respond.

Shel Kong kongscn

💭
I may be slow to respond.
View GitHub Profile
%%time
cs = []
for _idx, row in df.iterrows():
c2 = row['a']**2 + row['b']**2
cs.append(math.sqrt(c2))
# Wall time: 667 ms
@kongscn
kongscn / kanyanbao.js
Last active December 13, 2018 13:19
Zotero translator for kanyanbao.com
{
"translatorID": "56ebac6c-56f7-4564-ac07-58d6a1b2948a",
"label": "kanyanbao",
"creator": "Shel Kong",
"target": "^https?://(www.)?kanyanbao.com/",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": false,
"translatorType": 6,
@kongscn
kongscn / readme.md
Created October 13, 2016 21:20 — forked from baraldilorenzo/readme.md
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

@kongscn
kongscn / tmux-cheatsheet.markdown
Created January 28, 2016 07:38 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@kongscn
kongscn / BibTexCiteKeyForMarkdown.js
Created December 28, 2015 07:40 — forked from liob/BibTexCiteKeyForMarkdown.js
Zotero translator - BibTeX key for Markdown based on the work of Peter O'Brien, Simon Kornblith and Richard Karnesky
{
"translatorID": "7cb70025-a888-4a29-a210-93ec52da40d5",
"translatorType": 3,
"label": "BibTeX key for Markdown",
"creator": "created by liob based on the works of Peter O'Brien, Simon Kornblith and Richard Karnesky",
"target": "bib",
"minVersion": "2.1.9",
"maxVersion": null,
"priority": 200,
"inRepository": true,
@kongscn
kongscn / cx_oracle_instructions.md
Last active August 26, 2015 04:24 — forked from thom-nic/cx_oracle_instructions.md
Installing CX Oracle for Python & Mac OS X. Instructions exist around the web, but they seem to be piecemeal and incomplete.
@kongscn
kongscn / gist:d47fa9cbe8055faf1114
Created May 13, 2015 12:08
QuickSort in Racket
#lang racket
(define (qsort a)
(cond
[(empty? a) a]
[else (let*
([hd (first a)]
[tl (rest a)]
[smaller (filter (lambda (x) (< x hd)) tl)]
[bigger (filter (lambda (x) (>= x hd)) tl)])
(append (qsort smaller) (list hd) (qsort bigger)))]))

Keybase proof

I hereby claim:

  • I am kongscn on github.
  • I am kongscn (https://keybase.io/kongscn) on keybase.
  • I have a public key ASDkOIKmkKa0gv_hoV8Z06Ysy4Bf0ckH-y-YqusuWVwx_go

To claim this, I am signing this object:

@kongscn
kongscn / adf_hl.nb
Last active August 7, 2017 02:42
adf test half life ipython notebook
{
"metadata": {
"name": "",
"signature": "sha256:67ef237c0c9ece746bfe2500e488c467aabd97c00c8d8aae000151ee8323a44c"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>deck.js &raquo; Modern HTML Presentations</title>