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
var dict = [1: [11, 13, 15], 2: [23, 24]] | |
dict[3, default: []].append(39) |
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
BEGIN:VCALENDAR | |
PRODID:-//Chen Wei//Chinese Lunar Calendar//EN | |
VERSION:2.0 | |
CALSCALE:GREGORIAN | |
METHOD:PUBLISH | |
X-WR-CALNAME:农历 | |
X-WR-TIMEZONE:Asia/Shanghai | |
X-WR-CALDESC:中国农历2017-2023, 包括节气. | |
BEGIN:VEVENT | |
DTSTAMP:20200102T054544Z |
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
\documentclass[preview]{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{calc} | |
\usetikzlibrary{arrows} | |
\tikzset{default/.style={draw,inner sep=10pt}} | |
\tikzset{else master/.style={draw=gray!60,inner sep=10pt}} | |
\tikzset{feature/.style={draw,inner sep=10pt,fill=gray}} | |
\tikzset{master/.style={draw,inner sep=10pt,fill=blue!20}} | |
\tikzset{rect/.style={rectangle,minimum height=25pt,minimum width=60pt}} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
var FindProxyForURL = function(init, profiles) { | |
return function(url, host) { | |
"use strict"; | |
var result = init, scheme = url.substr(0, url.indexOf(":")); | |
do { | |
result = profiles[result]; | |
if (typeof result === "function") result = result(url, host, scheme); | |
} while (typeof result !== "string" || result.charCodeAt(0) === 43); | |
return result; | |
}; |
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
import readchar | |
class Parser: | |
def __init__(self): | |
self.lookahead = readchar.readchar() | |
def expr(self): | |
self.term() | |
while True: | |
if self.lookahead == b'+': |
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 crate::lexer::Lexer; | |
pub mod token { | |
pub mod tag { | |
#[derive(Clone, Copy, Debug)] | |
pub enum Tag { | |
Char(u8), | |
Num, | |
Id, | |
True, |
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
Set-PSReadlineKeyHandler -Chord Ctrl+d -Function DeleteCharOrExit | |
Import-Module posh-git | |
Import-Module scoop-completion | |
Import-Module posh-cargo | |
$GitPromptSettings.DefaultPromptPrefix.Text = '$(Get-Date -f "yyyy-MM-dd HH:mm:ss") ' | |
$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Magenta | |
$GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $true | |
$GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n' |
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
; Original script xlr-space.ahk (https://sspai.com/post/57157) | |
; Modified by amorphobia (https://github.com/amorphobia) | |
; Space | |
Space::Send {Space} | |
^Space::Send ^{Space} | |
#Space::Send #{Space} | |
^#Space::Send ^#{Space} | |
!Space::Send !{Space} |