Skip to content

Instantly share code, notes, and snippets.

View erasmas's full-sized avatar
🇺🇦

Dmytro Kobza erasmas

🇺🇦
View GitHub Profile
                   ######  ##   ##  #####  ##   ##  ##       
     .-" +' "-.    ##   ## ##   ## ##      ##   ##  ##       
    /.'.'A_'*`.\   ######  ##   ## ##      #######  ##       
   |:.*'/\-\. ':|  ##       ###### ##      ##   ##  ##       
   |:.'.||"|.'*:|  ##           ##  #####  ##   ##  ##       
    \:~^~^~^~^:/            #####                            
     /`-....-'\                              ####       
jgs /          \   ######  ##   ##  #####       ##  ####   
    `-.,____,.-'   ##   ## ##  ### ##   ##   #####     ##  
@erasmas
erasmas / ramen.oath
Created September 18, 2023 19:12
Клятва Свідків Церкви Святого Рамена
Oath of the Order of the Saint Ramen Soup:
I, [insert name], do hereby enter into this pact with the Order of the Saint Ramen Soup:
1. I swear to never slurp my ramen in public louder than a contented walrus at play, maintaining a decorum befitting a true ramen aficionado.
2. I promise to defend the honor of ramen against all who dare defile its name with abominations like "instant noodles without flavor packets."
3. I shall, in times of distress, turn to the divine guidance of the Ramen Gods, praying for perfectly balanced umami and an abundance of toppings.
open System.IO
type Opcode = int
type InstructionPointer = int
type Noun = int
type Verb = int
type Program = int []
type Output = int
let input =
@erasmas
erasmas / gist:a662ea1b99b1a40d99a8fc7966c75ee1
Created March 18, 2018 20:29
Quotes from the Peaceful Warrior, the movie.
- Knowledge is not the same as wisdom.
- You can live a whole lifetime without ever being awake.
- There's no higher service than service to others.
- People are afraid of what's inside, and that's the only place they're ever gonna find what they need.
- People are not their thoughts. They think they are, and it brings them all kinds of sadness.
[{
"id": 1,
"company_info":{
"company": "Jayo",
"country": "United States",
"Company Base State": "New Mexico",
"Zip Code": "88006",
"Company Domain Name": "icq.com",
"Number of employees": 1200,
"Creation year": 1980,
@erasmas
erasmas / Hangman.hs
Created December 11, 2017 21:47
Hangman exercise from Haskell Programming book
module Main where
import Control.Monad (forever)
import Data.Char (toLower)
import Data.List (intersperse)
import Data.Maybe (isJust, isNothing)
import System.Exit (exitSuccess)
import System.Random (randomRIO)
newtype WordList =
@erasmas
erasmas / Phone.hs
Created December 4, 2017 21:21
Phone exercise from "Haskell Programming from first Principles", Chapter 11
module Phone where
import Data.Char
import Data.Foldable (maximumBy)
import Data.List (group, map, sort)
import Data.Map (fromListWith, toList)
import qualified Data.Map.Strict as Map
import Data.Ord (comparing)
-- validButtons = "1234567890*#"
@erasmas
erasmas / manning-dotd
Last active August 16, 2017 20:09
Simple script to play with Ammonite-REPL
#!/usr/bin/env amm
import $ivy.`org.jsoup:jsoup:1.7.2`
import org.jsoup._
val doc = Jsoup.connect("http://manning.com").get()
val text = doc.select("#dotd-link-non-mobile > em:nth-child(1)").text
println(text)
println("http://manning.com/dotd")
#!/usr/bin/env bash
set -e
PN=`basename "$0"`
host=localhost
port=8983
collection=
inputfile=