// ls - loomscript syntax highlighting
package {
public class Fail {}
}
/* ls - loomscript syntax highlighting */
package {
/// 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); |
#!/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# | |
# |
#!/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 | |
// 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 {
#!/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") |
# set the title of the current Terminal tab | |
function title { | |
printf "\033]0;%s\007" "$1" | |
} |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
@bar = '─' | |
@elbow = '└' | |
@pipe = '│' | |
@space = ' ' | |
@tee = '├' | |
@slash = '/' |