View gist:f49c96d04f1a63b2e7ac905ba07577a3
You ask yourself why an orc would look like an onion. | |
"Why did you do that?" | |
"Peeling off my skin makes me cry." | |
"Oh. I'm sorry." | |
"Are you going to kill me?" | |
"I don't know." | |
The orc's eyes well up. "Peeling off my skin makes me cry." | |
"I can't kill you. I'm not an orc. But I can make you better." | |
You take out a flintlock pistol and shoot the orc in the head. | |
> You victory dance. |
View Grabber.cpp
// Copyright Patrick Werner 2019 | |
#include "Grabber.h" | |
#include "Engine/World.h" | |
#include "GameFramework/PlayerController.h" | |
#include "Components/PrimitiveComponent.h" | |
#define OUT | |
// Sets default values for this component's properties |
View foo.vue
<template lang="pug"> | |
p {{ bar }} | |
</template> | |
<script> | |
export default { | |
name: 'Foo', | |
data() { | |
return { | |
bar: 'baz', |
View php_detect_eol.php
<?php | |
/** | |
* Detects the end-of-line character of a string. | |
* modified version from https://stackoverflow.com/questions/11066857/detect-eol-type-using-php | |
* @param string $str The string to check. | |
* @param string $default Default EOL (if not detected). | |
* @return string The detected EOL, or default one. | |
*/ | |
function detectEol($str, $default = PHP_EOL) { |
View composer install oneliner.sh
curl -sS https://getcomposer.org/installer | php |
View gist:9c3acc3c31d38eb687af553ecf83f46d
Datenschutzerklärung | |
-- | |
no data whatsoever will be collected |
View csv-to-assoc.php
<?php | |
// modified version of https://steindom.com/articles/shortest-php-code-convert-csv-associative-array | |
function str_getcsv_semicolons($input) { | |
return str_getcsv($input, ';'); | |
} | |
$rows = array_map('str_getcsv_semicolons', file($filedir)); | |
$header = array_shift($rows); |
View login-popup.js
// it's in german but you can translate it if you want to | |
import swal from "sweetalert2"; | |
import axios from "axios"; | |
const loginPopup = () => { | |
swal({ | |
title: "Login", | |
backdrop: false, | |
showCancelButton: true, |
View dsgvo.txt
[acceptance dsgvo] Ich habe die <a href="/blog.php/datenschutz/" target="_blank">Datenschutzerklärung</a> gelesen und akzeptiert* | |
[acceptance dsgvo] I have read and accepted the <a href="/blog.php/datenschutz/" target="_blank">data security declaration</a>* | |
[acceptance dsgvo] J'ai lu et accepté la <a href="/blog.php/datenschutz/" target="_blank">politique de confidentialité</a>* | |
[acceptance dsgvo] Ho letto e accettato <a href="/blog.php/datenschutz/" target="_blank">l'informativa sulla privacy</a>* |
View recursive_grep.txt
grep -rnw . -e 'waldo' | |
find . -name 'waldo.txt' |
NewerOlder