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 | |
# For Python3, check: | |
# https://www.dinotools.de/2013/02/27/python-build-pyv8-for-python3-on-ubuntu/ | |
sudo apt-get install subversion build-essential libboost-python-dev python2.7-dev libboost-system-dev libboost-thread-dev | |
svn checkout http://v8.googlecode.com/svn/trunk/ v8 | |
svn checkout http://pyv8.googlecode.com/svn/trunk/ pyv8 |
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 | |
# | |
# This script checks out ffmpeg and its dependencies and builds them. | |
# | |
# Please refer to | |
# https://trac.ffmpeg.org/wiki/CompilationGuide | |
# for more information. | |
# | |
set -o errexit -o pipefail -o nounset |
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 python3 | |
import concurrent.futures.thread | |
import sys | |
import time | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
def remove_file(path): | |
print('Removing file %s' % path) |
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 python3 | |
import time | |
import concurrent.futures.thread | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
with ThreadPoolExecutor(1) as executor: | |
fs = [executor.submit(time.sleep, 10)] | |
try: |
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 | |
set -e | |
if [[ -z "$1" ]]; then | |
echo "Usage: $(basename $0) CHROOT_PATH" | |
exit 1 | |
fi | |
if [[ ${UID:-$(id -u)} == 0 ]]; then |
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
#include <cassert> | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
template <typename E> | |
class Matrix { | |
public: | |
static const int MAX_DIM = 10; |