0 1 2 3 4 5 6
123456789012345678901234567890123456789012345678901234567890
|
ASCII |
|
0 1 2 3 4 5 6 7 8 9 a b c d e f |
U+002x ! " # $ % & ' ( ) * + , - . / |
U+003x 0 1 2 3 4 5 6 7 8 9 : ; < = > ? |
using [gfm latex] seems to be the only reasonable way to annotate with color (see [latex color docs]), although it does not seem to differentiate between serif (roman -
textrm
), sans (sans font -textsf
), and mono (teletype -texttt
), and colorbox is not supported, which seems to eliminate the possibility of background / highlight color.
method | markdown | result |
---|---|---|
latex | text $\textrm{\color{cyan}{cyan text}}$ text |
text |
latex | text $\textsf{\color{cyan}{cyan text}}$ text |
text |
latex | text $\texttt{\color{cyan}{cyan text}}$ text |
text |
font | text cyan text text |
text cyan text text |
This file contains hidden or 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
/// Represents a weighted graph edge, connecting vertices [v1] and [v2]. | |
class Edge { | |
final int v1, v2; | |
int weight; | |
@override | |
String toString() => '${v1},${v2};${weight}'; | |
Edge(this.v1, this.v2, this.weight); |
This file contains hidden or 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
#!/usr/bin/env bash | |
# syntax : Esc[##;##m :: set bg;fg | |
# Esc[##m :: set one | |
# Esc[0m :: reset | |
# | |
# fg bg | |
# dark : Esc[3#m : Esc[4#m | |
# bright : Esc[9#m : Esc[10# | |
# |
This file contains hidden or 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
#!/bin/bash | |
# Uses AWS CLI and user-provided MFA code to retrieve and store | |
# temp session credentials from AWS Security Token Service (STS), | |
# - for user sessions via get-session-token | |
# - or role sessions via assume-role | |
# | |
# Stores 'token_expiration' in the profile to enable checks on session time left | |
This file contains hidden or 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
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
// To learn more about global settings, visit https://aka.ms/terminal-global-settings | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
// profile to use when typing ctrl+shift+t, the newTab key binding, running wt new-tab without specifying a profile, or clicking the '+' icon | |
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}", | |
// application theme (different than terminal color scheme). "system" will use the same theme as Windows, e.g. dark | |
"theme": "system", |
// ls - loomscript syntax highlighting
package {
public class Fail {}
}
/* ls - loomscript syntax highlighting */
package {
This file contains hidden or 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
#!/usr/bin/env ruby | |
abort 'please specify the remote to delete branches from' if ARGV.empty? | |
remote = ARGV.shift | |
puts "gathering list of branches for remote '#{remote}'" | |
branches = `git branch -r | grep #{remote}`.lines | |
branches.map! { |s| s.strip! } | |
branches.reject! { |b| b =~ /.*\/master/ } | |
branches.join("\n") |
NewerOlder