Skip to content

Instantly share code, notes, and snippets.

Repeat (5, true)
LoadDT(2)
Dilate(true)
WaitForSeconds(1.0)
RepeatUntil (DTP >= 16.00)
if (DTP <= 0.00 && AP <= 20.00)
GoToMacro(0)
Dilate(true)
WaitForSeconds(1.0)
DTU(CENTER, 0, 4)
RepeatUntil (DTP >= 5.00)
Dilate(true)
WaitForSeconds(5.0)
Dilate(false)
WaitForSeconds(1.0)
DTU(CENTER, 0, 0)
DTU(BOTTOM, 0, 0)
DTU(BOTTOM, 1, 0)
DTU(CENTER, 2, 0)
WaitUntil (DTP >= 10.00)
RepeatUntil (AP >= 101)
Infinite()
WaitForSeconds(1.0)
Eternate()
WaitForSeconds(1.0)
RepeatUntil (AP >= 4000)
Infinite()
Eternate()
Dilate(true)
WaitForSeconds(6.0)
@wbecher
wbecher / timelapsevideo.md
Created January 16, 2024 20:19 — forked from jkalucki/timelapsevideo.md
Creating Timelapse Video From Photos With FFMPEG

Creating Timelapse Video From Photos With FFMPEG

Man, there are a lot of outdated and incomplete tutorials about creating timelapse videos from JPG images and photos. Here's a quick start guide to get going in late 2019.

Software

I'm using ffmpeg version 4.2.1 on MacOS. It is free, well supported, and scales up to practically any number of input images or output video length.

There are a dozen paid timelapse software offerings out there, but I suspect they are just polished front-ends to ffmpeg. Small timelapse videos are possible in iMovie 10.1, but adding even a modest number of images bogs it down badly. The easiest approach is to create a rough lightly compressed video with ffmpeg and then edit the result in iMovie.

Resources

Dispel
Lightning Bolt
Chainer's Edict
Relic of Progenitus
Blue Elemental Blast
Ash Barrens
Red Elemental Blast
Duress
Fiery Cannonade
Suffocating Fumes
@wbecher
wbecher / spam-domains
Last active July 18, 2022 15:10 — forked from brandedoutcast/spam-domains
Spam domains that plague my email
email.reuters.com
projetodraft.com
mkt.shoptime.com
theinformation.com
mail2.fontshop.com
targettrust.com.br
news.email.dafiti.com.br
tainamotta.com.br
thomsonreuters.com
email.shopee.com

How to setup a practically free CDN

I've been using [Backblaze][bbz] for a while now as my online backup service. I have used a few others in the past. None were particularly satisfactory until Backblaze came along.

It was - still is - keenly priced at a flat $5 (£4) per month for unlimited backup (I've currently got just under half a terabyte backed-up). It has a fast, reliable client. The company itself is [transparent about their operations][trans] and [generous with their knowledge sharing][blog]. To me, this says they understand their customers well. I've never had reliability problems and everything about the outfit exudes a sense of simple, quick, solid quality. The service has even saved the day on a couple of occasions where I've lost files.

Safe to say, I'm a happy customer. If you're not already using Backblaze, [I highly recommend you do][recommend].

Taking on the big boys with B2

Instalando um Mac do Zero

Instalando Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

zsh

brew install zsh
@wbecher
wbecher / gera_submissao.py
Created October 20, 2020 00:29
Função para gerar arquivo csv de submissions para competição kaggle Housing
def gera_submissao(predicoes, nome):
submission = pd.DataFrame()
submission['Id'] = test.Id
submission.head()
submission['SalePrice'] = predicoes
submission.head()
submission.to_csv(nome, index=False)
print(f'Arquivo {nome} gerado')