Skip to content

Instantly share code, notes, and snippets.

View ahndmal's full-sized avatar
😔
stand with my homeland Ukraine

Andrii Maliuta ahndmal

😔
stand with my homeland Ukraine
View GitHub Profile
module SleighAuthenticationSpec where
import SleighAuthentication (authenticate)
import Test.Hspec
import Test.QuickCheck
spec :: Spec
spec = do
describe "authenticate" $ do
it "should work for some examples" $ do
expectTrue $ authenticate "Santa Claus" "Ho Ho Ho!"
@Savelenko
Savelenko / Handler.fs
Created October 27, 2022 08:53
Experimental typed and computation expression-based Giraffe HTTP handlers
module Handler
open System.Threading.Tasks
open Giraffe
open Giraffe.FormatExpressions
open Microsoft.AspNetCore.Http
open Microsoft.Extensions.Logging
(* Core definitions *)
@eagleeye
eagleeye / setup_ddos.bash
Last active April 6, 2022 02:04
How to setup fresh Ubuntu machine for DDOS
### I. Setup
apt-get install -y \
ca-certificates \
curl \
gnupg \
lsb-release \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
package main
import (
"fmt"
"io"
"log"
"net/http"
)
func main() {
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Welcome to my website!")
@AlexSugak
AlexSugak / Grammarly_FE_talks.md
Last active March 5, 2024 16:04
Grammarly front-end talks

Grammarly front-end talks

Links to the video recordings of various front-end related talks and workshops from Grammarly team.

  1. False simplicity of front-end applications [rus]: goes into details about how we solve complexity of modern stateful UI with focus on practical application of SOLID and FRP from the team behind Grammarly Editor
  2. False Simplicity of Front-End Applications: Our Experience [rus]: similar title as #1 but different talk, with more details about Grammarly Editor implementation challenges
  3. Scaling Front-End Platforms [eng]: Nick Sorrentino, Director of Engineering at Grammarly talks about challenges of scaling modern front-ends
  4. Introduction in Reactive Programming with React [rus]: overview of how to apply FRP with react
  5. [Керування
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>grpc-hello-server</artifactId>
<version>1.0-SNAPSHOT</version>
package ru.geekbrain;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
@darbyluv2code
darbyluv2code / pom.xml
Created February 13, 2020 06:01
Maven pom for Spring Core
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.demo</groupId>
<artifactId>spring-simple-demo</artifactId>
<version>1.0.0</version>
<properties>