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 <iostream> | |
using namespace std; | |
class Base | |
{ | |
public: | |
Base () { cout << "Base::Base" << endl; }; | |
}; | |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVfgdZ8mkJ/bcs7oPQohcpy831sRC3UACD+TQS8T9vAJ2pBPaaqx/lw6991PP/LOjKuDcmEm/6NP1bNLksmH8a/HmXHzUBzAetxHgr2IOoolDHw6fwKBNzvtanSPRNUonimANANzHst1NsScs2g8fjBJW7LA0f1mW+BvhDxDrA57RIUE4mNpYzIEgF/OtrFHleqLHDXVCpVc+9aacDGS0YQJpJ7zhR+smz9Bmrhomf/bp4JaHJl7Poxr8mdvtXLetlbzFg8wicRKCLUtQ8YHyZa+X5Oc2+6uPNLhpe31SoMxJ7kqJu2n+6wBEJhK9f2EDyhIPFLJXCCRWQz97Bw/nv [email protected] |
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 https (public access) instead of git for git-submodules. This modifies only Travis-CI behavior! | |
# disable the default submodule logic | |
git: | |
submodules: false | |
# use sed to replace the SSH URL with the public URL, then init and update submodules | |
before_install: | |
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | |
- git submodule update --init --recursive |
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
/* Scala pattern matching in a nutshell | |
======================================= */ | |
/* Expectation | |
-------------- */ | |
"param(value)" match { | |
case "param(" + val + ")" => println(s"OK! value == $val") | |
case _ => println("No way, bro") | |
} |
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
## .tmux.conf | |
## Petr Belohlavek | |
## thanks to Ham Vocke and Floop | |
# Set history | |
set -g history-limit 99999 | |
# Enable mouse control (clickable windows, panes, resizable panes) | |
set -g mouse on | |
#unbind-key -t vi-copy MouseDragEndPanel |
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
################### | |
# Petr Belohlavek # | |
################### | |
#################### | |
# General settings | |
export ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="gianu" | |
export UPDATE_ZSH_DAYS=7 |
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 | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=2.3 |
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
# /etc/resolvconf/resolv.conf.d/head | |
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) | |
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN | |
# If you want to change the DNS setting, edit `/etc/resolvconf/resolv.conf.d/head` and run `resolvconf -u` | |
nameserver 8.8.8.8 | |
nameserver 8.8.4.4 |
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 python3 | |
# python 3.5 (anaconda) | |
# TF 0.12 RC from https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.0rc0-cp35-cp35m-linux_x86_64.whl | |
# $ python -c "import tensorflow; print(tensorflow.__version__)" | |
# 0.12.0-rc0 | |
# OS: RedHat 7.2 | |
# CPU version only, no GPU, no CUDA, no CUDNN |
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
from pdfrw import PdfReader, PdfWriter, PdfObject | |
def main(): | |
thesis = PdfReader('thesis.pdf') | |
for i, _ in enumerate(thesis.pages): | |
try: | |
im_keys = thesis.pages[i].Resources.XObject.keys() |
OlderNewer