Skip to content

Instantly share code, notes, and snippets.

View Werninator's full-sized avatar
👀

Patrick Werner Werninator

👀
  • Germany
View GitHub Profile
@Werninator
Werninator / giphy-reactions.txt
Last active May 19, 2016 08:15
giphy reactions for slack
/giphy spooky fist pump
/giphy bacon burger reaction
/giphy let your pussy go
/giphy lolwut stunned what shocked huh
/giphy dance faggot dance
/giphy doge dance halloween
@Werninator
Werninator / excel-fileupload.html
Created September 15, 2016 15:12
Native HTML File-Upload only accepting Excel-Files
<!-- Straight from http://stackoverflow.com/questions/11832930/html-input-file-accept-attribute-file-type-csv -->
<input type="file" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" />
@Werninator
Werninator / AssocArrayToXmlParser.php
Last active September 15, 2017 11:58
[php] A basic little helper to convert assoc arrays to xml
<?php
class AssocArrayToXmlParser
{
private $assocArray;
private $xmlVersion = '1.0';
private $encoding = 'utf-8';
function __construct(array $_assocArray = null)
{
@Werninator
Werninator / 01_zipAndDownload.php
Last active January 16, 2017 09:30
[php] dynamically create files and let it download as a zip file
<?php
function zipAndDownload($zipName, $contents) {
$archive = new ZipArchive();
touch($zipName);
if ($archive->open($zipName, ZIPARCHIVE::OVERWRITE) !== true)
return;
<?php
$urlBeginning = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http') . '://';
$url = $urlBeginning . $_SERVER['HTTP_HOST'] . '/';
@Werninator
Werninator / advertisement.js
Created May 8, 2017 11:13
How to spot adblock
// in case this file gets loaded, it sets the variable to false
adBlocked = false;
@Werninator
Werninator / scrHandleTimers.gml
Created May 26, 2017 21:04
Game Maker Language Snippets
var i, timer;
if !is_array(timers)
return false;
for (i = 0; i < array_height_2d(timers); i++) {
if timers[i, 0] == -1
continue;
@Werninator
Werninator / embed.html
Created July 4, 2017 13:52
embedding pdfs
<!-- Contents can't be accessed (might be good for pdf stuff) -->
<object data="abc.pdf" type="application/pdf">
<!-- Alternative content when Object can't be loaded (coz of older browsers): HTML5 <embed>, contents can be manipulated -->
<embed src="abc.pdf" type="application/pdf" />
</object>
@Werninator
Werninator / resize-window.gd
Last active August 22, 2017 18:02
Godot: centers the game window
# https://godotengine.org/qa/485/how-to-center-game-window
var screen_size = OS.get_screen_size()
var window_size = OS.get_window_size()
func _ready():
OS.set_window_position(screen_size * .5 - window_size * .5)
@Werninator
Werninator / auf.JPEG.exe.md
Last active February 18, 2022 22:23
SPOOKYFISTPUMPSPOOKYFISTPUMPSPOOKYFISTPUMPSPOOKYFISTPUMPSPOOKYFISTPUMPSPOOKYFISTPUMPSPOOKYFISTPUMPSPOOKYFISTPUMP

auf

a game about elevators

moved to https://github.com/Werninator/auf

general idea

in auf you control elevator(s) to bring different people from one floor to another