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
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "net/http" | |
| "net/http/httputil" | |
| ) | |
| var listen string |
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
| package main | |
| import ( | |
| "context" | |
| "log" | |
| "os" | |
| "time" | |
| ) | |
| const stopAfter = 5 * time.Minute |
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "os" | |
| "strconv" | |
| "strings" | |
| ) |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "io/fs" | |
| "math" | |
| "math/rand" | |
| "os" | |
| "path/filepath" |
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
| """ | |
| Example of implementation of logical expression traversing. | |
| The typical logical expressions look like: "n1 AND n2" or "n1 OR n2" or more | |
| complex(nested): ((n1 AND n2) OR (n3 AND n4)). The last example can be | |
| represent as tree: | |
| OR | |
| / \ | |
| AND AND |
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
| ;; .emacs -- this is custom Emacs settings file | |
| ;;; Commentary: | |
| ;;; Change Log: | |
| ;;; Code: | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; Basic Customization ;; | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
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
| apt-get update | |
| apt-get install -y build-essential libgtk-3-dev libinotifytools0-dev libx11-dev xaw3dg-dev \ | |
| libjpeg-dev libpng12-dev libgif-dev libtiff4-dev libncurses5-dev \ | |
| libxft-dev librsvg2-dev libmagickcore-dev libmagick++-dev \ | |
| libxml2-dev libgpm-dev libghc-gconf-dev libotf-dev libm17n-dev \ | |
| libgnutls-dev wget libwebkitgtk-3.0-dev | |
| cd /usr/local/src && wget http://ftp.gnu.org/gnu/emacs/emacs-25.1.tar.xz | |
| tar xvf emacs-25.1.tar.xz && cd emacs-25.1 |
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
| apt-get update | |
| apt-get install -y build-essential libgtk-3-dev libinotifytools0-dev libx11-dev xaw3dg-dev \ | |
| libjpeg-dev libpng12-dev libgif-dev libtiff4-dev libncurses5-dev \ | |
| libxft-dev librsvg2-dev libmagickcore-dev libmagick++-dev \ | |
| libxml2-dev libgpm-dev libghc-gconf-dev libotf-dev libm17n-dev \ | |
| libgnutls-dev wget | |
| cd /usr/local/src && wget http://ftp.gnu.org/gnu/emacs/emacs-24.5.tar.xz | |
| tar xvf emacs-24.5.tar.xz && cd emacs-24.5 |