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 | |
set -u | |
# this script assumes the following: | |
# * you want to sync the master[0-9]+ branches | |
# * you are in a non-bare repo | |
# * this script runs interactive (maybe not needed?) | |
# * the remote to sync with is 'origin' and a bare repo |
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
import java.util.List; | |
import java.util.LinkedList; | |
import java.util.Iterator; | |
public class Modul1 | |
{ | |
/** | |
* Diese Methode erhaelt zwei Integer-Iterator-Listen und muss eine | |
* weitere Integer-Iterator-Liste zurueckgeben. Die beiden Eingaben | |
* haben beliebige "Formen", allerdings kann man sich darauf verlassen, |
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/sh | |
LED='/sys/class/leds/tp-link:green:qss/brightness' | |
if [ "$BUTTON" != reset ]; then | |
exit | |
fi | |
if [ "$ACTION" = pressed ]; then | |
echo 0 > /tmp/tuer_offen |
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
import math | |
import numpy | |
import cv2 | |
def isPattern(one, two, three, four, five): | |
if not one: | |
return | |
size = float(one + two + three + four + five) / 7 |
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 | |
set -u | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 <videoWebpageUrl>" | |
exit 1 | |
fi |
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
#0 0x00007fc9b86cf655 in raise () from /lib/libc.so.6 | |
#1 0x00007fc9b86d0ad6 in abort () from /lib/libc.so.6 | |
#2 0x00007fc9b96f5131 in g_assertion_message () from /usr/lib/libglib-2.0.so.0 | |
#3 0x00007fc9b96f56d0 in g_assertion_message_expr () | |
from /usr/lib/libglib-2.0.so.0 | |
#4 0x000000000048f22c in signal_unref_full (rec=0x10ce060, remove=1) | |
at signals.c:64 | |
#5 0x000000000048f4c5 in signal_emit_real (rec=0x10ce060, | |
params=<value optimized out>, va=<value optimized out>, | |
first_hook=<value optimized out>) at signals.c:287 |
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
float sorted[histLength]; | |
sorted[0] = history[0]; | |
for (int i = 1 ; i < histLength ; i++) { | |
for (int j = 0 ; j < i ; j++) { | |
if (history[i] < sorted[j]) { | |
for (int k = i - 1 ; k >= j ; k--) | |
sorted[k+1] = sorted[k]; | |
sorted[j] = history[i]; |
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
import random | |
def encrypt(text): | |
lastchar = random.randint(0,255) | |
result = chr(lastchar) | |
for char in text: | |
lastchar ^= ord(char) | |
result += chr(lastchar) | |
return result |
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 <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <stropts.h> | |
#include <string.h> | |
#include <linux/soundcard.h> | |
//#include <soundcard.h> |
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
/* | |
as you can see, this is just an adaption of the toneMelody demo. | |
*/ | |
/* | |
Melody | |
Plays a melody | |
circuit: |