Skip to content

Instantly share code, notes, and snippets.

View dtinth's full-sized avatar
🎶
𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪

Thai Pangsakulyanont dtinth

🎶
𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪𒐪
  • @bemusic                 @creatorsgarten                 @eventpop                 @showdownspace                 @spacetme                @wonderfulsoftware                
  • Krungthepmahanakhonamonrattanakosinmahintharayutthayamahadilokphopnoppharatratchathaniburiromudomratchaniwetmahasathanamonphimanawatansathitsakkathattiyawitsanukamprasit (Bangkok), Thailand
  • YouTube @dtinth
View GitHub Profile
#!/bin/bash
ffmpeg -i "$1" -filter:v "scale=683x384, crop=512:384:86:0, pad=512:512:0:64, scale=256x256" -pass 1 -f mpeg1video -q:v 3 -an -passlogfile log_file -y "$1.mpeg"
ffmpeg -i "$1" -filter:v "scale=683x384, crop=512:384:86:0, pad=512:512:0:64, scale=256x256" -pass 2 -f mpeg1video -q:v 3 -an -passlogfile log_file -y "$1.mpeg"
@dtinth
dtinth / README.md
Created September 19, 2015 16:55
Crop to 4:3, add letterbox with dimmed, blurred background

Install mpv and vapoursynth:

brew tap mpv-player/mpv
brew install --with-libbs2b --with-vapoursynth mpv

Save the script below (squareize.py).

Use mpv to encode the video:

@dtinth
dtinth / vinylsmith.coffee
Created August 12, 2015 03:58
Vinylsmith
###
Vinylsmith: A Wintersmith plugin factory that pipes files through a
series of gulp plugins.
By Thai Pangsakulyanont <[email protected]>
Licensed WTFPL
###
fs = require 'vinyl-fs'
lazypipe = require 'lazypipe'
@dtinth
dtinth / chords.cson
Last active January 5, 2016 10:18
My atom-arpeggio chord definition (for JavaScript on Colemak layout)
arpeggio:
chords:
# JavaScript
var: "var "
let: "let "
ret: "return "
thr: "throw "
new: "new "
imp: "import "
@dtinth
dtinth / chords.coffee
Created July 9, 2015 04:48
Atom chords add-on (to be made as plugin soon)
do -> # Chords add-on
# Uppercase letter only, must be sorted alphabetically
chords = {
'AKW': '川',
'ERQ': 'require',
'IMP': 'import'
'FNU': 'function',
}
#atom-perspective() {
@viewing-distance: 12in;
@rotation: 20deg;
.tree-view-scroller {
transform: translateY(-10vh) perspective(@viewing-distance) rotateY(@rotation);
padding-top: 12vh;
padding-bottom: 12vh;
transform-origin: left;
@dtinth
dtinth / Reminiscentia.md
Last active August 29, 2015 14:23
Original “Reminiscentia” Idea
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test</title>
</head>
<body>
<h1>This counter should keep counting smoothly: <span id="counter"></span></h1>
<script src="https://cdn.jsdelivr.net/bluebird/latest/bluebird.min.js"></script>
<script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test</title>
</head>
<body>
<h1>This counter should keep counting smoothly: <span id="counter"></span></h1>
<script src="https://cdn.jsdelivr.net/bluebird/latest/bluebird.min.js"></script>
<script>
diff --git a/source/vendor/es6-module-loader/es6-module-loader-sans-promises.src.js b/source/vendor/es6-module-loader/es6-module-loader-sans-promises.src.js
index 813ed0a..8b2d73c 100644
--- a/source/vendor/es6-module-loader/es6-module-loader-sans-promises.src.js
+++ b/source/vendor/es6-module-loader/es6-module-loader-sans-promises.src.js
@@ -280,7 +280,7 @@ function logloads(loads) {
// 15.2.4.5.3 InstantiateSucceeded
.then(function(instantiateResult) {
if (load.status != 'loading')
- return;
+ return false;