This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.mp4 -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3 -an -vf "scale=-1:1440, reverse" -preset veryslow -g 2 output.mp4 | |
// -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3 | |
// Encode for web with a good balance of browser compatibility and compression ratio | |
// -an | |
// Strip audio tracks | |
// -vf "scale=-1:1440, reverse" | |
// Scale video to 1440px wide, maintaining aspect ratio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
summary System using public return this the if new param string name null int get to void value var set false of private true assembly else The is returns for object static in bool Windows Assert override class case Collections break namespace global type throw result endregion Generic using Name and remarks Add resource Forms const try para Text or Linq an Test region code catch Microsoft Runtime that default aapt java cref be from base with not internal protected Type Length file by exception as see Data values Exception Version typeof following ComponentModel byte ToString ex String item Diagnostics generated Fact Web Drawing Value index can source context method Threading This data Count foreach ComVisible on COM List Dispose you out AreEqual virtual message reader information Create readonly endif If attribute double Serialization Console field AccessFlags Dot42 Controls DexImport Xml request IO node key Build ArgumentNullException sender id text modify list Tasks float obj instance Equal Reflection Wri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
settingFile=setting.conf | |
logFile=result | |
. $settingFile | |
fullGitHttpUrl="${gitHttpUrl:0:8}$username:$password@${gitHttpUrl:8}" | |
repoNameWithDotGit=`basename "$fullGitHttpUrl"` | |
repoName="${repoNameWithDotGit:0:-4}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const PROD = !!(require('yargs').argv.production); | |
console.log(PROD ? 'production' : 'dev', 'mode'); | |
let site = require('./site'); | |
const gulp = require('gulp'); | |
let browser; | |
const Metalsmith = require('metalsmith'); | |
const Handlebars = require('handlebars'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! function(a, b) { | |
"object" == typeof exports && "object" == typeof module ? module.exports = b() : "function" == typeof define && define.amd ? define([], b) : "object" == typeof exports ? exports.jwplayer = b() : a.jwplayer = b() | |
}(this, function() { | |
return function(a) { | |
function b(c) { | |
if (d[c]) return d[c].exports; | |
var e = d[c] = { | |
exports: {}, | |
id: c, | |
loaded: !1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
{ # this ensures the entire script is downloaded # | |
nvm_has() { | |
type "$1" > /dev/null 2>&1 | |
} | |
nvm_install_dir() { | |
printf %s "${NVM_DIR:-"$HOME/.nvm"}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Handlebars.registerHelper('compareTime', function(lhs, operator, rhs, options) { | |
/*eslint eqeqeq: 0*/ | |
if (arguments.length < 4) { | |
throw new Error('handlebars Helper {{compareTime}} expects 4 arguments'); | |
} | |
var a = rhs, b = rhs; | |
if (!moment.isMoment(a)) a = moment(lhs); | |
if (!moment.isMoment(b)) b = moment(rhs); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local MEM = {} | |
local PC = 0 | |
local registers = { | |
A = 0, | |
B = 0, | |
C = 0, | |
D = 0 | |
} | |
local fetch = function() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local lpeg = require "lpeg" | |
local utf8_codepoint | |
do | |
-- decode a two-byte UTF-8 sequence | |
local function f2 (s) | |
local c1, c2 = string.byte(s, 1, 2) | |
return c1 * 64 + c2 - 12416 | |
end |
NewerOlder