Skip to content

Instantly share code, notes, and snippets.

༼ つ ◕_◕ ༽つ 📶

Josh Schmelzle joshschmelzle

༼ つ ◕_◕ ༽つ 📶
Block or report user

Report or block joshschmelzle

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
View TypeWriter.cs
using System;
using System.IO;
using System.Text;
using System.Threading;
namespace LazyWriter
class TypeWriter : System.IO.TextWriter
private TextWriter originalOut;
joshschmelzle / Stylebot.css
Last active Mar 31, 2016
simplynoise decluttered using stylebot
View Stylebot.css
/* See before and after here: */
#bottomSection {
visibility: hidden;
display: none;
#topSection {
visibility: hidden;
display: none;
joshschmelzle / Emoji Cheat Sheet
Created Sep 2, 2016
Use this cheat sheet for a shorthand emoji list
View Emoji Cheat Sheet
joshschmelzle /
Created Oct 12, 2016
Rewriting the default protocol for GitHub

git config --global url. git://

joshschmelzle / spinner.js
Last active Oct 24, 2016
A simple spinner animation with JavaScript and HTML
View spinner.js
var a = ["~", "/", "|", "\"];
// - : -
// ~ : ~
var asyncLoop = function(o) {
var i = -1;
var loop = function() {
joshschmelzle / spinner.cs
Created Oct 24, 2016
A spinner animation in a win32 console
View spinner.cs
private void Spin()
Console.CursorVisible = false;
for (int i = 0; i < 3; i++)
Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);
Console.SetCursorPosition(Console.CursorLeft - 1, Console.CursorTop);
joshschmelzle / localhost-ping-timestamp.bat
Created Nov 3, 2016
win32 ping with timestamp. to use from the command line replace %%a with %a - found hre:
View localhost-ping-timestamp.bat
@echo off
ping -t localhost|cmd /q /v /c "(pause&pause)>nul & for /l %%a in () do (set /p "data=" && echo(!time! !data!)&ping -n 2 localhost>nul"
joshschmelzle /
Last active Dec 1, 2016
Merging two video clips into one and placing them next to each other with ffmpeg

Taking two video clips, placing them side by side, combining 4 channels of audio into 2, and output.

ffmpeg -i video1.MP4 -i video2.mp4 -filter_complex "[0:v][1:v]hstack=inputs=2[v]; [0:a][1:a]amerge[a]" -map "[v]" -map "[a]" -ac 2 output.mp4

This was done with two filters and the audio from both inputs.

  • hstack places each video side-by-side.
  • amerge combines the audio from both inputs into a single, multi-channel audio stream, and -ac 2 will make it stereo (without this option the audio stream may end up as 4 channels if both inputs are stereo.)
joshschmelzle / ffmpeg-cut-out-video.cmd
Created Nov 29, 2016
Cut a video without re-encoding with ffmpeg
View ffmpeg-cut-out-video.cmd
ffmpeg -i input.mp4 -c copy -ss 00:04:25.000 -to 00:09:25.000 output.mp4
You can’t perform that action at this time.