Skip to content

Instantly share code, notes, and snippets.

View rackaam's full-sized avatar
🤔

Matthias rackaam

🤔
View GitHub Profile
@rackaam
rackaam / jsconfig.json
Created March 3, 2023 15:29
Enable JSDoc type checking
{
"compilerOptions": {
"checkJs": true
},
"exclude": ["node_modules", "**/node_modules/*"]
}
@rackaam
rackaam / Dockerfile
Created February 26, 2016 13:00
Dockerfile with depencies to install the bcrypt npm module https://www.npmjs.com/package/bcrypt
FROM alpine:3.3
FROM alpine:3.3
RUN apk update && apk add nodejs
RUN apk add python
RUN apk add g++
RUN apk add make
RUN rm -rf /var/cache/apk/*
@rackaam
rackaam / bcrypt-test.js
Created February 25, 2016 22:21
node bcrypt test
'use strict';
let bcrypt = require('bcrypt');
process.stdin.on('data', function (text) {
let password = "" + text.slice(0, -1);
console.time('hash');
let hash = bcrypt.hashSync(password, 12);
console.timeEnd('hash');
console.log(hash);
// ClassA.ts
"use strict";
export = ClassA;
class ClassA {
private static c: number;
public static init(n: number) {
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" href="map.css" media="screen" />
</head>
<body>
<script src="interact-1.2.4.min.js"></script>
<script type="text/javascript">
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" href="map.css" media="screen" />
</head>
<body>
<script type="text/javascript">
function getMouseXY(e) {
var o = JSON.parse('{"code": 0,"court": {"Set": { "1": { "A": 0, "B": 6 }, "2": { "A": 0, "B": 0 } }, "TeamA": "BEL", "NameA": "E.DOM", "ScoreA": "0", "Duration": "02:31", "Winner": null, "Tableau": "1/2-P", "Category": "SW", "Court": 6, "TeamB": "DEU", "NameB": "A.FUCHS", "ScoreB": "40", "Service": "B" }}');
// Afficher nom de la team A
console.log(o.court.TeamA);
// Afficher le score de tous les sets
var sets = o.court.Set;
for(id in sets){
console.log("Set " + id + " A:" + sets[id].A);
console.log("Set " + id + " B:" + sets[id].B);
@rackaam
rackaam / Box2DSeparator.java
Created May 31, 2014 15:47
Convex Separator for libGDX Box2D
/*
* Convex Separator for libGDX Box2D
*
* Made by https://github.com/rakam
* This class is a libGDX version of the Antoan Angelov's work.
* It is designed to work with Erin Catto's Box2D physics library.
*
* Everybody can use this software for any purpose, under two restrictions:
* 1. You cannot claim that you wrote this software.
* 2. You can not remove or alter this notice.