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
def extract_arg(input_str): | |
start_i = input_str.index('=') + 1 | |
return input_str[start_i:] | |
def find_arg(arg, args): | |
for s in args: | |
if arg in s: | |
return extract_arg(s) | |
return None | |
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
import os | |
from selenium import webdriver | |
from selenium.common.exceptions import TimeoutException | |
from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 | |
from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0 | |
chromedriver = './chromedriver' | |
os.environ["webdriver.chrome.driver"] = chromedriver | |
# Create a new instance of the Firefox driver |
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 python | |
# Copyright Steinwurf ApS 2015. | |
# Distributed under the "STEINWURF RESEARCH LICENSE 1.0". | |
# See accompanying file LICENSE.rst or | |
# http://www.steinwurf.com/licensing | |
import os | |
import shutil | |
import threading |
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
for x in range(0, test_amount): | |
threads.append(threading.Thread(target=thread_test, args=[website, element_id, x])) | |
for thread in threads: | |
print("Thread has been started") | |
thread.start() | |
for thread in threads: | |
thread.join() |
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
# LaTeX temporary files | |
**/*.aux | |
**/*.log | |
**/*.toc | |
**/*.gz | |
**/*.dvi | |
**/*.out.ps | |
**/*.lox | |
**/*.bbl | |
**/*.blg |
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
MacBook-Pro:Projekt tools$ bibtex Rapport | |
This is BibTeX, Version 0.99d (TeX Live 2014) | |
The top-level auxiliary file: Rapport.aux | |
The style file: bibtex/harvard.bst | |
A level-1 auxiliary file: kontekst/indledning_og_initierende_problem.aux | |
A level-1 auxiliary file: kontekst/definition_maalgruppe.aux | |
A level-1 auxiliary file: kontekst/nuvaerende_hjaelpemidler.aux | |
A level-1 auxiliary file: kontekst/hjaelpemidlers_pavirkning_af_frihedsgrader.aux | |
A level-1 auxiliary file: kontekst/oerets_anatomi_frederik.aux | |
A level-1 auxiliary file: kontekst/oeret_morten.aux |
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
func set_pre_charging(encoder C.kodo_coder_t, bool pre_charging) { | |
if pre_charging == false { | |
C.set_pre_charging(encoder, uint8(0)) | |
}else { | |
C.set_pre_charging(encoder, uint8(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
#!usr/bin/env bash | |
cp /Users/tools/.emacs ./dot_emacs | |
cp /Users/tools/.gitconfig ./dot_gitconfig | |
cp /Users/tools/.bash_profile ./dot_bashprofile |
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
export GOROOT=/usr/lib/go | |
export GOARCH=amd64 | |
export GOOS=linux | |
export GOBIN=/usr/bin | |
export PATH=$PATH:$GOBIN |
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
[tools@steinwurf-124 kodogo]$ ./compile | |
go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags | |
# command-line-arguments | |
could not determine kind of name for C.kodo | |
/* | |
#cgo LDFLAGS: -Llibkodoc.so | |
#include "kodoc.h" | |
*/ | |
import "C" |
OlderNewer