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 | |
# brew install handbrake parallel ffmpeg | |
usage() | |
{ | |
echo 1>&2 "Usage:" "$0" 'path/to/video/dir1 [path/to/video/dir2 ...]' | |
exit -1 | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Real-time LaTeX in browser</title> | |
<!-- https://github.com/mathjax/MathJax/blob/master/test/sample-dynamic-2.html --> | |
<!-- Copyright (c) 2012-2015 The MathJax Consortium --> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
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
#include <igl/guess_extension.h> | |
#include <igl/read_triangle_mesh.h> | |
#include <igl/viewer/Viewer.h> | |
#include <Eigen/Core> | |
#include <iostream> | |
#include <string> | |
#include <cstdio> | |
#include <unistd.h> | |
int main(int argc, char * argv[]) |
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
#include <Eigen/Core> | |
#include <tuple> | |
template < | |
typename DerivedO0, | |
typename DerivedO1, | |
typename DerivedI0, | |
typename DerivedI1> | |
std::tuple< | |
Eigen::MatrixBase<DerivedO0>, |
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
#include "find_param.h" | |
#include <iostream> | |
// http://stackoverflow.com/a/868894/148668 | |
int main(int argc,const char *argv[]) | |
{ | |
// Default values: | |
double tol = std::numeric_limits<double>::max(); | |
std::string msg = "nothing to say"; | |
// Process flags/parameter-pairs of the form: -f, -p val |
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/python | |
from __future__ import print_function, division | |
from math import * | |
from numpy import * | |
import numpy.linalg | |
try: | |
from PIL import Image |
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
# https://gist.github.com/alecjacobson/b4e8f59bbd251ed81df4c5fe8441f630 | |
# | |
# brew install ffmpeg --with-fdk-aac | |
OLDPWD=$( pwd ) | |
cd "$1" | |
paths=$( find . -name "*.mp3" | sed 's/\([0-9]\)/;\1/' | sort -n -t\; -k2,2 | tr -d ';') | |
echo "$paths" | |
concat_paths=$( echo "$paths" | tr '\n' '|' ) | |
ffmpeg -i "concat:$concat_paths" -c:a libfdk_aac -b:a 128k -f mp4 "$2" | |
cd "$OLDPWD" |
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
# https://gist.github.com/alecjacobson/b4e8f59bbd251ed81df4c5fe8441f630 | |
# | |
# brew install ffmpeg --with-fdk-aac | |
OLDPWD=$( pwd ) | |
cd "$1" | |
# Sort files so that ./Disc 10/1.mp3 is after ./Disc 9/1.mp3 | |
paths=$( find . -name "*.mp3" | sed 's/\([0-9]\)/;\1/' | sort -n -t\; -k2,2 | tr -d ';') | |
echo "$paths" | |
concat_paths=$( echo "$paths" | tr '\n' '|' ) | |
ffmpeg -i "concat:$concat_paths" -c:a copy -f mp3 "$2" |
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
#include <igl/writeDMAT.h> | |
#include <igl/readDMAT.h> | |
#include <cstdlib> | |
#include <iostream> | |
int main(int argc, char *argv[]) | |
{ | |
if(argc == 1) | |
{ | |
std::cout<<R"( |
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 | |
# Collaborator list, add, remove from a repository | |
# (c) 2015 miraculixx | |
# Author: github.com/miraculixx | |
# MIT License, see below | |
function help { | |
echo "Add collaborators to one or more repositories on github" | |
echo "" | |
echo "Syntax: $0 -H GITHUB_OAUTH_TOKEN [-l] [-D] -r repo1,repo2 <collaborator id1>,<collaborator id2>" |
OlderNewer