This flow takes in a variety of resolutions and converts them using Handbrake to av1. You can read more about this on my website.
from mutagen.flac import FLAC, Picture | |
from mutagen.id3 import APIC, ID3, PictureType, ID3NoHeaderError | |
import os | |
import subprocess | |
import sys | |
import time | |
import hashlib | |
num_files = 0 | |
checksum_file = 'checksums.txt' |
#!/bin/bash | |
# Loop over all files in the current directory with the format "{number}_{filename}_(Instrumental).flac" | |
for file in *.flac; do | |
# Extract the filename without the number and '(Instrumental)' part | |
filename=$(echo "$file" | sed -E 's/^[0-9]+_(.*)_\(Instrumental\)\.flac/\1/') | |
# Construct the path of the matching file in the parent directory | |
parent_file="../${filename}.flac" |
call plug#begin('~/.vim/plugged') | |
Plug 'christoomey/vim-tmux-navigator' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'dracula/vim' | |
Plug 'edkolev/tmuxline.vim' | |
Plug 'ntpeters/vim-better-whitespace' | |
Plug 'prettier/vim-prettier', { 'do': 'yarn install' } | |
Plug 'sheerun/vim-polyglot' | |
Plug 'tpope/vim-commentary' | |
Plug 'tpope/vim-surround' |
image: | |
registry: docker.io | |
repository: bitnami/ghost | |
tag: 2.6.0 | |
pullPolicy: IfNotPresent | |
volumePermissions: | |
image: | |
registry: docker.io | |
repository: bitnami/minideb |
# https://github.com/kylestetz/slang | |
@bass (adsr (osc saw) 0 0.5 0 0.5) + (filter lp 20) | |
play @bass (rhythm [8n 16n 8n 16n r16n]) (notes [e1 e2 e1 d2]) | |
@pluck (adsr (osc saw) 0 0.05 0 0) | |
play @pluck (rhythm [16n]) (notes [e4 d4 e4 g4]) | |
@doot (adsr (osc square) 0 0.04 0.1 0) + (filter lp 20) | |
play @doot (rhythm [r16n 16n 16n 16n]) (notes [e2 e2 e2 d3 g3 a3]) |
This is the "Redux manufacturing" project, which simulates a warehouse that accepts orders, prepares them for delivery, and ships them. It's built with React and Redux.
The project starts with an existing codebase built without Redux. We'll integrate Redux and react-redux
, move the component-level functions into reducers, and define actions to be dispatched from the component to make these state changes happen.
A number of functions are defined in the top-level component, App.js
. These functions are passed in as props to various components, and are called to update the App
component's state.
We need to move each of these functions into the Redux reducer function, ensure that they are pure functions, and define the appropriate actions (and constants) to be able to dispatch those actions from components.
" Pathogen setup | |
runtime bundle/vim-pathogen/autoload/pathogen.vim | |
" Bundle: tpope/vim-pathogen | |
call pathogen#infect() | |
" Bundles | |
" | |
" Bundle: tpope/vim-sensible | |
" Bundle: tpope/vim-rails | |
" Bundle: tpope/vim-fugitive |
def index(conn, %{“hub.verify_token” => verify_token, “hub.challenge” => challenge}) do | |
resp = | |
case verify_token do | |
“helloworld” -> challenge | |
_ -> “notok” | |
end | |
text conn, resp | |
end |
defmodule SampleApp.WebhookController do | |
use SampleApp.Web, :controller | |
def index(conn, _params) do | |
json conn, %{status: “ok”} | |
end | |
end |