Skip to content

Instantly share code, notes, and snippets.

View simonmysun's full-sized avatar

孙茂胤 (Sun, Maoyin) simonmysun

View GitHub Profile
@be5invis
be5invis / interpreter.js
Last active July 1, 2019 11:26
A CPS-style S-exp interpreter (with call/cc)
function interpret(form, env, k){
if(form instanceof Array){
switch(form[0]){
case 'lambda': {
var params = form[1];
var body = form[2];
return k(function(k){ return function() {
var e = Object.create(env);
for(var j = 0; j < params.length; j++)
e[params[j]] = arguments[j];
@KonradIT
KonradIT / readme.md
Last active July 11, 2024 20:46
GoPro Studio for Linux
@ljsabc
ljsabc / BTCChina-UserStyle
Created October 12, 2013 08:52
This is a simple user stylesheet for BTCChina real-time stats : http://i.btc123.com/index_btcchina.php
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300);
@-webkit-keyframes animatedBackground {
from {
background-position: 0 0;
}
to {
background-position: 100% 0;
}
}
@whitlockjc
whitlockjc / html-ejs.el
Last active December 21, 2015 01:19
Use mmm-mode to enable EJS Template highlighting in html-mode
;; ...
;; Use mmm-mode to enable EJS (http://embeddedjs.com) Template highlighting in html-mode
;; Turn on mmm-mode
(require 'mmm-mode)
(setq mmm-global-mode 'maybe)
;; mmm-mode class for EJS Templates
(mmm-add-classes
@summivox
summivox / renren-markdown.user.js
Last active August 28, 2016 15:58
renren-markdown v1.0.0 preview (2013-11-06)
// Copyright (c) 2013, smilekzs. (MIT Licensed)
// ==UserScript==
// @name renren-markdown
// @namespace http://github.com/smilekzs
// @version 1.0.0
// @description Powerful markdown-based editor for blog.renren.com
// @grant GM_xmlhttpRequest
// @match *://blog.renren.com/blog/*Blog*
// @match *://blog.renren.com/blog/*edit*
// @match *://blog.renren.com/*Entry*
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active April 20, 2025 23:00
A badass list of frontend development resources I collected over time.
@cloudaice
cloudaice / world_location_map.json
Last active April 14, 2016 10:00
update file at utctime 2016-04-14 10:00:39.468129
{
"Taipei,Taiwan": "TW",
"Vancouver": "CA",
"SF,/,BOS,/,NYC,/,LA": "BO",
"Omaha,NE": "NE",
"China,Canton,Guangzhou": "CN",
"Arkansas": "US",
"Beijing,China": "CN",
"Waco,TX": "US",
"Ancona,Italy": "IT",
@lastland
lastland / BeyesianAvg.py
Created August 11, 2012 07:14
尝试用这篇post: http://www.matrix67.com/blog/archives/5044 中的方法实现的一个自动中文抽词算法的Python程序
# -*- coding=utf-8 -*-
import collections
# Usage:
# 我的做法是把WordsDetector.py里的结果输出到文件,
# 然后把文件名放到下面的names列表中,运行本程序。
names = ['name0',
'name1',
'name2',
@dwayne
dwayne / 00-install-on-64-bit-ubuntu-14.04.md
Last active January 12, 2024 17:48
Installing node and npm on Ubuntu 12.04 LTS and 64-bit Ubuntu 14.04 LTS.
  1. Navigate to http://nodejs.org/download/ and on the Linux Binaries (.tar.gz) row click to download the 64-bit version of the current latest release.

  2. Say you've downloaded node-v0.10.7-linux-x64.tar.gz into the Downloads directory. Then, open the terminal and type the following:

$ cd ~/Downloads
$ mkdir -p ~/local/node
$ tar xzf node-v0.10.7-linux-x64.tar.gz -C ~/local/node --strip-components=1
$ echo '# Node Enviroment Setup' >> ~/.bashrc
$ echo 'export PATH=$HOME/local/node/bin:$PATH' &gt;&gt; ~/.bashrc