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
<html> | |
<head> | |
<title>Rechteckt</title> | |
<script language="Javascript"> | |
function rechne() | |
{ | |
lang=document.Rechteck.laenge.value; | |
breit=document.Rechteck.breite.value; | |
Flaeche=lang*breit; | |
alert("Die Flächenmaßzahl beträgt " + Flaeche) |
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
var stream = require('stream'); | |
var sstream = new stream.Readable(); | |
var rstream1 = new stream.Readable(); | |
var rstream2 = new stream.Readable(); | |
sstream._read = function() {}; | |
rstream1._read = function() { | |
var chunk = sstream.read(); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BackgroundAlphaInactive</key> | |
<real>0.20177023121387283</real> | |
<key>BackgroundBlur</key> | |
<real>0.60489169034090906</real> | |
<key>BackgroundColor</key> | |
<data> |
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
syntax on | |
filetype plugin indent on | |
:set nu | |
:set cc=80 | |
:set smartindent | |
:set tabstop=4 | |
:set shiftwidth=4 | |
:set expandtab | |
autocmd FileType html set tabstop=2 | set shiftwidth=2 |
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
build: | |
$(CC) -o queue.o queue.c |
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 <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
pthread_t threads[3]; | |
pthread_cond_t cond_a; | |
pthread_cond_t cond_b; |
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 "queue.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
#define THREADS 3 | |
/** | |
* Task queue. |
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 <uv.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
/** | |
* Our tcp server object. | |
*/ | |
uv_tcp_t server; | |
/** |
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 <uv.h> | |
#include <stdio.h> | |
/** | |
* Reference to our event loop. | |
*/ | |
uv_loop_t * loop; | |
/** | |
* Work requests for fs actions. |
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 "webserver.h" | |
/** | |
* Storage for our buffer with the http response. | |
*/ | |
static uv_buf_t resp_buf; | |
/** | |
* Pointer to libuv event loop. | |
*/ |