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
server{ | |
listen *:80; | |
server_name server.superpowers.ralmn.fr; | |
location / { | |
proxy_pass http://127.0.0.1:8001; | |
proxy_http_version 1.1; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $host; | |
proxy_set_header Upgrade $http_upgrade; |
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
/* --- Author --- | |
@Purexo | |
/* --- ------ --- */ | |
interface ActionConstructor { | |
keyboard?: string[]; | |
mButton?: number[]; | |
gamepad?: number[]; | |
gButton?: number[]; | |
gAxis?: number[]; |
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/bash | |
################################# | |
# Author : Purexo <contact@purexo.eu> | |
# usage : | |
# ./script {start|stop|force-stop|restart|reload|force-reload|status} | |
# number c'est pour le loadbalancing on va avoir plusieurs fois | |
# le même programme de lancé, faut pouvoir fermer ce que l'on veux | |
################################# |
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
/** | |
* @author : Purexo | |
* @description : Binding localStorage API to extend the key -> value functionnality with JSON api | |
* when setItem, data is stringify | |
* when getItem, data is parsed | |
* @usage : | |
* ls.setItem('key', data) | |
* ls.getItem('key', data) | |
* ls.removeItem('key') | |
* ls.key('index') |
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
namespace Sound { | |
export interface contructorSoundController { | |
MUSIC_PATH: string; | |
SOUND_PATH: string; | |
// musics['category']['nom'] = 'relative/path/from/MUSIC_PATH' | |
// tableau associatif de tableau associatif | |
musics: { | |
[index: string]: { | |
[index: string] : string |
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
module Particule { | |
class Color extends Sup.Color { | |
static random () { | |
let Random = Sup.Math.Random; | |
return new Color( | |
Random.integer(0, 100) / 100, | |
Random.integer(0, 100) / 100, | |
Random.integer(0, 100) / 100 | |
); | |
} |
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
'use strict'; | |
/** | |
* SimpleEventManager is a simple API for create and listen Event | |
* It's a superset of DOM Event listening API | |
* | |
* Example : | |
let event = new SimpleEventManager(function(lastState) { | |
// watched variable |
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
// ==UserScript== | |
// @name CandiBox 1 - AutoSave | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Purexo | |
// @require https://gist.githubusercontent.com/purexo/0d27aad481158047ae852dc10d779cd9/raw/bc931c67e74d5d9d9d205ea456bc52d64f94e124/SimpleEventManager.js | |
// @include http://candies.aniwey.net/* | |
// @grant none | |
// ==/UserScript== |
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/bash | |
# Default Parameters | |
pattern="*.svg" | |
output="./svgtopng-output" | |
x=false | |
width="128" | |
y=false | |
height="128" |
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
const handlerStorage = { | |
get(target, key) { | |
const value = target.getItem(key); | |
try { | |
return JSON.parse(value); | |
} catch (e) { | |
return value; | |
} | |
}, |
OlderNewer