Skip to content

Instantly share code, notes, and snippets.

View usametov's full-sized avatar

Ulan Sametov usametov

  • Asta Nova Enterprise Solutions
View GitHub Profile
@usametov
usametov / init.vim
Last active July 9, 2021 00:33 — forked from practicalli-johnny/init.vim
Practicalli -- Neovim configuration for Clojure development
" Set mapleader for general commands (not set by default - not sure if this is needed)
" let maplocalleader = "\<Space>"
" Set maplocalleader for Conjure leader key
let maplocalleader = ","
"Relative line numbers
set relativenumber
" Full color theme support for neovim
@usametov
usametov / repl-driven-development-with-spacemacs.org
Created July 9, 2021 00:32 — forked from practicalli-johnny/repl-driven-development-with-spacemacs.org
Screencast script - REPL driven development with Spacemacs

Introduction

Hello and thank you for watching this Practicalli screencast in which I’ll demonstrate a REPL driven development workflow for Clojure using Spacemacs

Spacemacs is a community configuration for Emacs, which uses the CIDER project as the Clojure development environment.

This workflow uses the Clojure CLI tools to run the Clojure REPL

Manage REPL session

, m . and , . calva.jackInOrConnect jack-in and connect menu commandPaletteeditor/context

, m c and , ” calva.connect Connect to a Running REPL Server in the Project Ctrl Alt C Ctrl Alt C | |

@usametov
usametov / ubuntu-post-install.md
Created July 9, 2021 00:26 — forked from practicalli-johnny/ubuntu-post-install.md
Ubuntu post install - including Raid setup
@usametov
usametov / ubuntu-install-backup
Created July 9, 2021 00:22 — forked from practicalli-johnny/ubuntu-install-backup
a version that I was editing and lost track of what I changed.
# Ubuntu install
Also see earlier install guide https://gist.github.com/jr0cket/7655cf6f0dcd889ca0dbb0edb2b544c2
## X1 Extreme installation
Download Ubuntu server iso image
burn image to usb
Enter and f1 to open bios config
- remove secure boot
[convert]::ToBase64String((Get-Content -path "your_file_path" -Encoding byte))
@usametov
usametov / string.clj
Created June 30, 2021 03:40 — forked from punit-naik/string.clj
Levenshtein Distance function implemented in Clojure
(defn levenshtein-distance
"Finds the percentage of match (reversed levenshtein distance & normalised)
between two strings"
[s1 s2]
(let [similarity (atom 0)
edit-map (atom {})]
(doseq [i (range (count s1))]
(let [edit (atom (if (zero? i) 0 i))]
(doseq [j (range (count s2))]
(let [e (if (= (.charAt s1 i) (.charAt s2 j)) 0 1)]
@usametov
usametov / rotate-video.sh
Created June 13, 2021 01:45 — forked from ViktorNova/rotate-video.sh
Rotate a video with FFmpeg (100% lossless, and quick)
$INPUTVIDEO='input.mp4'
$OUTPUTVIDEO='output.mp4'
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO
;; This simnle tutorial is using AWS CDK (Cloud Development Kit, JavaScript flavor),
;; Clojure CLI (tools.deps), Cognitect Lab's aws-api, and Oracle's JDBC library.
;; deps.edn file looks like this:
{:deps {org.clojure/clojure {:mvn/version "1.10.1"} org.clojure/data.json {:mvn/version "1.0.0"}
com.amazonaws/aws-lambda-java-core {:mvn/version "1.2.0"}
com.cognitect.aws/api {:mvn/version "0.8.456"} com.cognitect.aws/endpoints {:mvn/version "1.1.11.753"} com.cognitect.aws/s3 {:mvn/version "784.2.593.0"} com.cognitect.aws/sqs {:mvn/version "770.2.568.0"} com.cognitect.aws/secretsmanager {:mvn/version "793.2.626.0"}
com.oracle.database.jdbc/ojdbc10 {:mvn/version "19.3.0.0"} seancorfield/next.jdbc {:mvn/version "1.0.409"}}
:paths ["src" "classes"]
@usametov
usametov / c4w3_colab_t5_squad_model.ipynb
Last active June 4, 2021 16:36
C4W3_Colab_T5_SQuAD_Model.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.