Skip to content

Instantly share code, notes, and snippets.

View sshaplygin's full-sized avatar
🎯
Focusing

Sam Shaplygin sshaplygin

🎯
Focusing
View GitHub Profile
from mp4 to wav format `ffmpeg -i <infile> -ac 2 -f wav <outfile>`
join wav files `ffmpeg -i 1.wav -i 1.wav -i 1.wav -i 1.wav \
-filter_complex '[0:0][1:0][2:0][3:0]concat=n=4:v=0:a=1[out]' \
-map '[out]' output.wav`
@sshaplygin
sshaplygin / README.md
Last active April 5, 2023 20:00
How increase memory allocation by append to ints slice in golang

Plot Legend:

x - allocation number
y - diff allocated at iteration between old and new memory

“plot”

@sshaplygin
sshaplygin / README.MD
Last active July 17, 2022 17:09
Build and upload c/cpp code to Arduino microcontroller by avr-gcc, avr-objedump, avrdude

Scheme build and upload cpp code into Arduino:

Example by docs

Снимок экрана 2022-07-17 в 17 27 46

Usage

  • Install gcc, avr-gcc, avr-objcopy, avrdude
  • Use updaload.sh
package hw03frequencyanalysis
import (
"regexp"
"sort"
)
var r = regexp.MustCompile(`\s+`)
func Top10(text string) []string {
@sshaplygin
sshaplygin / parallel.go
Last active July 18, 2022 12:26
hw_05_parallel_execution
package hw05parallelexecution
import (
"errors"
"sync"
"sync/atomic"
)
var ErrErrorsLimitExceeded = errors.New("errors limit exceeded")
@sshaplygin
sshaplygin / pipeline.go
Last active May 12, 2022 19:06
hw06_pipeline_execution
package hw06pipelineexecution
type (
In = <-chan interface{}
Out = In
Bi = chan interface{}
)
type Stage func(in In) (out Out)
@sshaplygin
sshaplygin / unpack.go
Last active March 22, 2022 11:04
hw02_unpack_string
package hw02unpackstring
import (
"errors"
"strconv"
"strings"
"unicode"
)
const escapeSymbol string = "\\"
@sshaplygin
sshaplygin / build.sh
Last active February 26, 2026 21:10
My CV in LaTex-file online compiler overleaf.com
#!/bin/bash
set -e
TEX_FILE="cv.tex"
OUTPUT="cv.pdf"
BASE_NAME="Sam_Shaplygin_CV"
echo "→ Building PDF..."
pdflatex -interaction=nonstopmode $TEX_FILE > /dev/null

1. Name

Last Name = Sidorov First Name = Mitrofan Middle Name - check "No middle name"

2. Gender

Male

3. Birth Date

import requests
query = 'Только не по лицу'
genre = 10
def get_genres():
"""
Функция отправляет запрос к Балабобе,
и получает в ответ список жанров.