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
find . -name "*.psd" | while read file; do NEU=`dirname "$file"`/`basename "$file" psd`png; convert "$file" "$NEU"; done |
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
adb shell am broadcast -a android.intent.action.DOCK_EVENT --ei android.intent.extra.DOCK_STATE 0 // normal mode | |
adb shell am broadcast -a android.intent.action.DOCK_EVENT --ei android.intent.extra.DOCK_STATE 1 // dock mode | |
adb shell am broadcast -a android.intent.action.DOCK_EVENT --ei android.intent.extra.DOCK_STATE 2 // car mode |
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_module(library(clpfd)). | |
create_mat(0, _, []). | |
create_mat(N0, N, [Zeile|Matrix]) :- | |
N0 > 0, | |
N1 is N0 - 1, | |
length(Zeile, N), | |
create_mat(N1, N, Matrix). | |
sum_row([], _). |
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 wave | |
import pylab | |
import os | |
import numpy as np | |
def readwavefile(filename): | |
""" | |
Reads a WAV file and returns all the frames converted to floats and the framerate. | |
""" | |
assert os.path.exists(filename) and os.path.isfile(filename) |
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
Sub Brief_schreiben() | |
Dim word_app As Word.Application | |
Dim word_doc As Word.Document | |
' Aktive Zelle ermitteln und Adresse rausfischen | |
Dim CustomerAddress as string | |
CustomerAddress = Cells(ActiveCell.Row, 4).value | |
If CustomerAddress = "" Then | |
MsgBox "Bitte Kunde auswählen", , "Fehler" |
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 | |
# -*- coding: utf-8 -*- | |
from lxml import etree as et | |
def main(): | |
mpa = dict.fromkeys(range(32)) | |
phonebooks = et.Element('phonebooks') | |
phonebook = et.SubElement(phonebooks, "phonebook") | |
for line in open('kontakte.csv', 'r').read().split('\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
(package-initialize) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(blink-cursor-mode nil) | |
'(custom-enabled-themes (quote (tango-dark))) | |
'(global-visual-line-mode t) |
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 | |
import os | |
def header(): | |
print """ | |
<html> | |
<head> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("visualization", "1", {packages:["corechart"]}); |
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
cv::FileStorage fs("viff.xml", cv::FileStorage::READ); | |
for (int i=0; i<36; i++) { | |
std::stringstream smat; | |
cv::Mat P; | |
smat << "viff" << std::setfill('0') << std::setw(3) << i << "_matrix"; | |
fs[smat.str()] >> P; | |
} |
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
/***************************************************************************** | |
* Fast meshing of grid-like ordered vertices. | |
* This code snippet shows the indexing for a faces array to mesh grid-like | |
* ordered vertices using only one for loop. The indexing looks as follows: | |
* | |
* 0-----1-----2-----3 | |
* | //| //| //| | |
* | // | // | // | | |
* | // | // | // | | |
* |// |// |// | |
OlderNewer