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
# LCDd.conf -- configuration file for the LCDproc server daemon LCDd | |
# | |
# This file contains the configuration for the LCDd server. | |
# | |
# The format is ini-file-like. It is divided into sections that start at | |
# markers that look like [section]. Comments are all line-based comments, | |
# and are lines that start with '#' or ';'. | |
# | |
# The server has a 'central' section named [server]. For the menu there is | |
# a section called [menu]. Further each driver has a section which |
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
public class MagicalLand { | |
public static void main(String[] args) { | |
for(int i = 0; i < (Math.random() * 500) + 2; i++) { | |
if(Unicorn.pat()) { | |
System.out.println("UNICORN #1: PAT THIS UNICORN ONCE"); | |
} | |
} | |
for(int i = 0; i < (Math.random() * 500) + 2; i++) { | |
if(Unicorn.pat()) { | |
System.out.println("UNICORN #2: PAT THIS UNICORN ONCE"); |
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 tweepy import OAuthHandler | |
from tweepy import API | |
from tweepy import Status | |
from lcdproc.server import Server | |
import socket | |
import time | |
import commands | |
def tweepy_auth(): |
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 tweepy import OAuthHandler | |
from tweepy import API | |
from tweepy import Status | |
from threading import Thread | |
import RPi.GPIO as GPIO | |
import feedparser | |
import time | |
import commands | |
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
Fragen hier eintragen |
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
# Makefile fuer Palindrom-Beispiel | |
CC = cc | |
LD = -lnsl | |
all: palindrom_Client palindrom_Server | |
# die XDR-Schnittstelle | |
palindrom_clnt.c palindrom_svc.c palindrom.h palindrom_xdr.c: palindrom.x | |
rpcgen palindrom.x |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#ifndef INPUT_ERR | |
#define INPUT_ERR "Aufruf mit %s <Datei> ...\n",argv[0] | |
#endif | |
#ifndef STAT_ERR |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <sys/msg.h> | |
#include <errno.h> | |
#include <string.h> | |
#ifndef ARGV_ERROR | |
#define ARGV_ERROR "Aufruf mit ./a.out [r|s] [id] \n" | |
#endif | |
#ifndef ID_ERROR |
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/sh | |
# | |
# Aufruf: | |
# ./ipcrma.sh Benutzername ipcTyp | |
# | |
# Typen: { m | s | q } | |
# m->Shared Memory | |
# s->Semaphore | |
# q->Message Queues |