This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local counter = 0 | |
function make_label(nonu) | |
local label_class = 'margin-toggle' .. (nonu and '' or ' sidenote-number') | |
local label_sym = nonu and '⊕' or '' | |
local label_html = string.format( | |
'<label for="sn-%d" class="%s">%s</label>', | |
counter, | |
label_class, | |
label_sym |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Xft.dpi: 180 */ | |
XTerm*locale: true | |
XTerm*reverseVideo: on | |
xterm*faceName: Source Code Pro | |
xterm*faceNameDoublesize: Source Han Sans | |
XTerm*metaSendsEscape: true | |
xterm*termName: xterm-256color | |
xterm*faceSize: 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.vim/plugged') | |
Plug 'editorconfig/editorconfig-vim' | |
" Status | |
Plug 'bling/vim-airline' | |
Plug 'lilydjwg/fcitx.vim' | |
" Bars, panels, and files | |
Plug 'scrooloose/nerdtree' | |
" Plug 'bling/vim-airline' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1;;Advanced Topics in Types and Programming Languages;1 | |
2;;Preface;10 | |
2;;I Precise Type Analyses;16 | |
3;;1 Substructural Type Systems;18 | |
4;;1.1 Structural Properties;19 | |
4;;1.2 A Linear Type System;21 | |
4;;1.3 Extensions and Variations;32 | |
4;;1.4 An Ordered Type System;45 | |
4;;1.5 Further Applications;51 | |
4;;1.6 Notes;55 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import OrderedDict, Iterable | |
import math | |
from itertools import chain | |
import operator as ops | |
class Var: | |
def __init__(self, v): | |
self.v = v | |
self.ss = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v3.0.json", | |
"width": 480, | |
"height": 1600, | |
"padding": 50, | |
"data":[ | |
{ "name": "table", | |
"url": "https://coscup.org/2017-assets/json/submissions.json", | |
"format": {"type":"json", "parse":{"start":"date", "end": "date"}}, | |
"transform": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setxkbmap -device $(xinput list --id-only 'Chicony PFU-65 USB Keyboard') us -option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE PatternGuards #-} | |
{- This filter allows for numerical section references. It should be | |
used with "--number-sections", since it uses a similar numbering | |
scheme. It works by using the link notation: given a header with a | |
given id, we can refer to that number by using a link with `#` in it: | |
My Header {#my-header-id} | |
========= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- input.lua.bak 2014-06-28 10:13:51.897841317 +0800 | |
+++ input.lua 2014-06-28 11:38:07.049859004 +0800 | |
@@ -295,6 +295,10 @@ | |
if not (nil == intParam) then | |
text = string.format(text, intParam) | |
end | |
+ | |
+ for key, rename in pairs(STRINGS.UI.CONTROLSSCREEN.GENERIC_CONTROLLER_RENAMES) do | |
+ text = string.gsub(text, key, rename) | |
+ end |