Skip to content

Instantly share code, notes, and snippets.

View 0x04's full-sized avatar

Oliver Kühn 0x04

View GitHub Profile
# @see https://stackoverflow.com/a/28663187/2379235
ls -lah /path/to/your/file | awk -F " " {'print $5'}
@0x04
0x04 / box-drawing.md
Last active November 12, 2023 09:23
Unicode box-drawing characters
/**
* @var HTMLElement
*/
let current = $0
do {
if (current.hasAttribute('id')) {
break
}
}
In einem kleinen Dorf wohnte einst ein Mädchen mit dem Namen Barbara.
Barbara war in der ganzen Gegend für Ihren ausgezeichneten Rhabarberkuchen bekannt.
Weil jeder so gerne Barbaras Rhabarberkuchen aß, nannte man sie Rhabarberbarbara.
Rhabarberbarbara merkte bald, dass sie mit ihrem Rhabarberkuchen Geld verdienen könnte.
Daher eröffnete sie eine Bar: Die Rhabarberbarbarabar.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
document.querySelectorAll('.frame *')
.forEach((e, i) => {
e.style.visibility = 'hidden';
setTimeout(() => e.style.visibility = 'visible', i * 100);
});
@0x04
0x04 / vim.md
Last active May 24, 2020 16:01
VIM config/plugins

Collected/created React code snippets

var hackInput = document.querySelector('#inputfield')
var hackHighlight = null
var hackCurrent = 0
var hackInterval = 0
function hack() {
hackHighlight = document.querySelector('#row1 .highlight')
if (!hackHighlight) {
clearInterval(hackInterval)
@0x04
0x04 / StringUtil.as
Last active February 25, 2020 13:00
package com.utils
{
public class StringUtil {
static public function padStart(string:String, length:uint, padString:String = ' '):String {
var insert:String = '';
for (var i:int = 0; i < length; i++) {
insert += padString;
}