Skip to content

Instantly share code, notes, and snippets.

@cavedave
cavedave / bat_etymology_dataset.csv
Last active April 22, 2025 18:15
Bats have crazy words for them in languages I started with this https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fapnha37a0fk51.jpg from a university. and added some more languages. Code is a copy of https://github.com/cainesap/mapMakeR/tree/master/etymologyMaps updated for new python
lang iso word translation meaning_group color source
Spanish spa murciélago little blind mouse blind_mouse lightblue https://en.wiktionary.org/wiki/murciélago
Portuguese por morcego little blind mouse blind_mouse lightblue https://en.wiktionary.org/wiki/morcego
Catalan cat ratpenat winged rat winged_rat yellow https://en.wiktionary.org/wiki/ratpenat
Galician glg morcego little blind mouse blind_mouse lightblue https://en.wiktionary.org/wiki/morcego#Galician
Basque eus saguzar old mouse old_mouse skyblue https://en.wiktionary.org/wiki/saguzar
French fra chauve-souris bald mouse bald_mouse skyblue https://en.wiktionary.org/wiki/chauve-souris
Italian ita pipistrello evening creature evening_creature orange https://en.wiktionary.org/wiki/pipistrello
Romansh roh utschè mezmiur unknown grey https://en.wiktionary.org/wiki/utschè_mezmiur
German deu Fledermaus flutter mouse flutter_mouse lemonchiffon https://en.wiktionary.org/wiki/Fledermaus
@amiorin
amiorin / README.md
Last active June 17, 2025 20:49
How to configure Home Row Mods with KMonad on macOS

Intro

Karabiner and KMonad are great open source software. Don't forget to support the authors and contributors.

If you want to try home row mods on OSX, don't use Karabiner but KMonad. KMonad is harder at the beginning but then it is easier than Karabiner. Creating layers in KMonad is trivial and without drawbacks, while it is impossible in Karabiner without drawbacks.

You need to compile a PR of the project. Install https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/releases/download/v2.1.0/Karabiner-DriverKit-VirtualHIDDevice-2.1.0.pkg

@vielhuber
vielhuber / README.MD
Last active July 23, 2025 15:36
domdocument domxpath xpath #php

setup

$DOMDocument = new \DOMDocument();
$DOMDocument->loadHTML('<div>foo</div>');
$DOMXPath = new \DOMXPath($DOMDocument);

load html file

$DOMDocument->loadHTML(file_get_contents('tpl.html'));
# 02.10.2016
Гарри Поттер и анапская рыбалка
Гарри Поттер и аппаратный маникюр
Гарри Поттер и восьмая джава
Гарри Поттер и двойная мотивация
Гарри Поттер и десктопные интерфейсы
Гарри Поттер и домашнее животное
Гарри Поттер и ебанутая сука
Гарри Поттер и ебнутый клип
@avafloww
avafloww / PhpJava.java
Last active August 12, 2025 13:33
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();
'use strict';
var gulp = require('gulp'),
watch = require('gulp-watch'),
prefixer = require('gulp-autoprefixer'),
uglify = require('gulp-uglify'),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'),
rigger = require('gulp-rigger'),
cssmin = require('gulp-minify-css'),