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
http = require('http'); | |
fs = require('fs'); | |
server = http.createServer( function(req, res) { | |
console.dir(req.param); | |
if (req.method == 'POST') { | |
console.log("POST"); | |
var body = ''; | |
req.on('data', function (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
#include <string> | |
#include <random> | |
#include <iostream> | |
#include <time.h> | |
using namespace std; | |
int main(){ | |
cout << "bitte geben sie stringzahl ein"<<endl; | |
int x; | |
cin >> x; | |
string Liste[1000]; |
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></head><body> | |
<canvas id="canvas" width="800" height="400"></canvas> | |
<script> | |
var canvas = document.getElementById("canvas"); | |
var ctx = canvas.getContext("2d"); | |
var text = ctx.measureText("hello"); //measures text width | |
text.width; |