Skip to content

Instantly share code, notes, and snippets.

Han You sqd

Block or report user

Report or block sqd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ipid
ipid / warn-light.cc
Last active Jan 15, 2020
Simple warning light flashing in your terminal. Written in C++17 with ncurses.
View warn-light.cc
/*
Simple warning light flashing in your terminal.
Compile with the following arguments:
<YOUR COMPILER> --std=c++17 -O2 -lcurses -o warn-light warn-light.cc
*/
#include <ncurses.h>
#include <stdint.h>
#include <unistd.h>
@alexellis
alexellis / timelapse.md
Created Mar 9, 2017 — forked from porjo/timelapse.md
ffmpeg time-lapse
View timelapse.md

Convert sequence of JPEG images to MP4 video

ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4

  • -r 24 - output frame rate
  • -pattern_type glob -i '*.JPG' - all JPG files in the current directory
  • -i DSC_%04d.JPG - e.g. DSC_0397.JPG
  • -s hd1080 - 1920x1080 resolution

Slower, better quality

@debasishg
debasishg / gist:8172796
Last active Jan 19, 2020
A collection of links for streaming algorithms and data structures
View gist:8172796
  1. General Background and Overview
@edokeh
edokeh / index.js
Last active Jan 24, 2020
佛祖保佑,永无 BUG
View index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
You can’t perform that action at this time.