Skip to content

Instantly share code, notes, and snippets.

View 1buran's full-sized avatar
🍀
Coding is fun! 🌴

Andrew Burdyug 1buran

🍀
Coding is fun! 🌴
View GitHub Profile
@1buran
1buran / genpass.go
Created April 28, 2024 07:09
Generator of passwords
package main
import (
"fmt"
"math/rand"
"os"
"strconv"
"strings"
)
@1buran
1buran / filegen.go
Last active April 13, 2024 16:44
File generation
package main
import (
"flag"
"fmt"
"io/fs"
"math"
"math/rand"
"os"
"path/filepath"
@1buran
1buran / logical_expressions_tree.py
Created December 12, 2019 04:55
Traversing of logical expressions
"""
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
@1buran
1buran / .emacs
Created September 25, 2016 09:54
Emacs config
;; .emacs -- this is custom Emacs settings file
;;; Commentary:
;;; Change Log:
;;; Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Basic Customization ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@1buran
1buran / build-emacs-25.1.sh
Last active September 24, 2016 18:34
Build Emacs 25.1
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
@1buran
1buran / build-emacs-24.5.sh
Last active July 12, 2016 05:55
Build Emacs 24.5
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