Skip to content

Instantly share code, notes, and snippets.

View lincerely's full-sized avatar
🕹️

Lincerely lincerely

🕹️
View GitHub Profile
/* css font definition for Anderson Grotesk
* from https://www.behance.net/gallery/58071711/ANDERSON-GROTESK-A-free-font-family
*/
@font-face {
font-family: 'Anderson Grotesk';
font-style: normal;
font-weight: 300;
src: url(./AndersonGrotesk-Light.otf) format('opentype');
}
@lincerely
lincerely / lua-class.sh
Last active February 12, 2021 21:05
generate lua class diagram in graphviz format, compatible with rxi's class module (https://github.com/rxi/classic/blob/master/classic.lua)
#!/bin/sh
# generate lua class diagram in graphviz format
# example: ./lua-class.sh *.lua > class.gv
echo "digraph hierarchy {"
echo "\tsize = \"5,5\""
echo "\tnode[shape=record,style=filled,fillcolor=gray95]"
echo "\tedge[dir=back,arrowtail=empty]"
grep "^function" "$@" |\
body {
font-size: 12px;
line-height: 1.5;
}
#page {
max-width: 500px;
margin: 15px;
word-wrap: break-word;
}
h1 {
@lincerely
lincerely / ytfilter.md
Last active December 11, 2020 10:49
youtube search filter
  • search in title intitle:"hello world"
  • must include +"hello world"
  • or operator "hello | world"

Example intitle:"GANG BEASTS" +"ハニスト | あにまーれ | シュガリリ"

#!/usr/local/plan9/bin/rc
. 9.rc
. $PLAN9/lib/acme.rc
if(~ $#* 0 1){
echo >[1=2] usage: adiff file1 file2
echo >[1=2] or adiff file1 file2... dir
exit usage
@lincerely
lincerely / gdbm_example.c
Last active April 9, 2020 06:20
C by Example: GDBM
// gdbm_example.c
// CFLAGS = -Wall -Wextra -Werror -O2 -std=c99 -pedantic -lGDBM
#include <stdio.h>
#include <string.h>
#include <gdbm.h>
#include <stdlib.h>
GDBM_FILE dbf;
/* 15jul14abu
* 06dec12jk
* (c) Software Lab. Alexander Burger
*/
html {
background-color: #ddd;
}
body {
set tabstop=4
set shiftwidth=4
set ls=2
set number
set relativenumber
set diffopt+=internal,algorithm:patience
set splitbelow
set splitright
@lincerely
lincerely / gogs.svg
Created July 30, 2018 17:15
Gogs icon optimized for web (monotonic)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lincerely
lincerely / typed.html
Last active July 30, 2018 12:09
typed js example
<html>
<head>
<title> typed js example </title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/typed.js/2.0.8/typed.min.js"></script>
</head>
<body>
<p>Typed js is typing: <span id="type-me"></span></p>
<script>