This file contains 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 | |
[[ -z "$FR" ]] && FR=30 | |
[[ -z "$W" ]] && W=-1 | |
[[ -z "$H" ]] && H=1080 | |
[[ -z "$F" ]] && F=0.125 | |
[[ -z "$TR" ]] && TR=2 | |
INPUT="$1" | |
[[ -n "$2" ]] && OUTPUT="$2" || OUTPUT="${INPUT//\/}.mp4" | |
# ffmpeg -framerate $FR -pattern_type glob -i "$INPUT/*.JPG" -c:v libx264 -crf 17 -pix_fmt yuv420p -vf "transpose=0" -vf scale=-1:800 "$OUTPUT" |
This file contains 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 chars='+[]'.split('') | |
let pastStrings=[...chars] | |
const outs=[] | |
const num = 12 // number of characters to try appending | |
let best = null | |
mainLoop: | |
for(let i=0;i<num;++i){ | |
let newStrings=[] | |
for(const preStr of pastStrings){ |
This file contains 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
/* | |
* Cuda memory wrapper | |
*/ | |
#ifndef CUDAMEMORY_H | |
#define CUDAMEMORY_H | |
#ifndef NDEBUG | |
#include <iostream> | |
#include <stdlib.h> |
This file contains 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 | |
# Wed Jun 16 16:04:19 EDT 2004 | |
# NAME: p1 | |
# Copyright 2004, Chris F.A. Johnson | |
# Released under the terms of the GNU General Public License | |
# Modified by Alexandre Kaspar <xion.luhnis(at)gmail(dot)com> | |
# Using https://gist.github.com/jjarmoc/1571540 | |
CR=$'\r' ## carriage return; for removal of |