Skip to content

Instantly share code, notes, and snippets.

View looopTools's full-sized avatar

Lars Kakavandi-Nielsen looopTools

View GitHub Profile
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
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
#!/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
@looopTools
looopTools / threads
Last active September 22, 2015 19:46
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()
# LaTeX temporary files
**/*.aux
**/*.log
**/*.toc
**/*.gz
**/*.dvi
**/*.out.ps
**/*.lox
**/*.bbl
**/*.blg
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
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))
}
}
#!usr/bin/env bash
cp /Users/tools/.emacs ./dot_emacs
cp /Users/tools/.gitconfig ./dot_gitconfig
cp /Users/tools/.bash_profile ./dot_bashprofile
export GOROOT=/usr/lib/go
export GOARCH=amd64
export GOOS=linux
export GOBIN=/usr/bin
export PATH=$PATH:$GOBIN
[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"