Skip to content

Instantly share code, notes, and snippets.

View pointbazaar's full-sized avatar
🌳
OCP Inspired

Alexander pointbazaar

🌳
OCP Inspired
View GitHub Profile
@pointbazaar
pointbazaar / webhook.js
Last active November 28, 2018 10:58
salesforce webhooks
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) {
@pointbazaar
pointbazaar / randomstrings.cpp
Last active October 30, 2017 02:28
shuffle a list of strings randomly
#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];
<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;