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
// Map examples, Struct examples | |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// used for checking tags |
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
// Arrays and Slices | |
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
// basic syntax and initialization | |
grades := [3]int{97, 85, 93} |
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
// Constants Examples | |
package main | |
import "fmt" | |
// enumerated constants | |
const ( | |
e1 = iota | |
e2 // it is inferring iota | |
e3 // it is inferring iota |
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
// Primitives Examples | |
package main | |
import "fmt" | |
func main() { | |
var n bool = true | |
var m bool // zero value is false | |
fmt.Printf("%v, %T\n", n, n) | |
fmt.Printf("%v, %T\n", m, m) |
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
// Variables Examples | |
package main | |
import ( | |
"fmt" | |
"strconv" | |
) | |
// package level var that is publically visible (uppercase) | |
var ( |
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
! Exported from Terminal.Sexy | |
! Modified from collection/hybrid by W0ng | |
! special | |
*.foreground: #cbc4ba | |
*.background: #211f1d | |
*.cursorColor: #cbc4ba | |
! black | |
*.color0: #282724 |
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
// Quick and dirty specification for my bookmarks system using python/bash scripts to manage bookmarks of differnet types | |
// scripts/files to be used | |
// $HOME/.config/kcbookmarks/kcbookmarkrc | |
// $HOME/.local/share/kcbookmarks/bookmarks.yaml | |
// $HOME/.local/share/kcbookmarks/kcbookmarks.py | |
// $HOME/.local/bin/kc-bookmark-get-quick | |
// $HOME/.local/bin/kc-bookmark-get-menu | |
// $HOME/.local/bin/kc-bookmark-add-menu |
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
[alias] | |
gl = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
gl2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all |
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
! "Chevronic" colorscheme, by knaveightt | |
! Provided in .Xresources format (you can import this into terminal.sexy and play around) | |
! special | |
*.foreground: #bdbdbd | |
*.background: #0d0d0d | |
*.cursorColor: #bdbdbd | |
! black | |
*.color0: #555555 |