Skip to content

Instantly share code, notes, and snippets.

View skammer's full-sized avatar
🐱
may or may not be a cat

Max Vasiliev skammer

🐱
may or may not be a cat
View GitHub Profile
include ffl/str.fs
0 Variable cnt
0 Value fd-in
256 Constant max-line
Create line-buffer max-line 2 + allot
str-create buffer
str-create buffer-inverted
str-create buffer-tmp
@skammer
skammer / flashlight.sh
Created November 16, 2023 01:49
Aurora OS flashlight toggle script. Watches over the unused orange button on the R570E phone.
#!/bin/bash
set -e
COUNTER=0
cat /dev/input/event1 | \
while IFS= read -s -d '' -r -n1 foo ; do
if [ "$foo" == "<" ]
then
#![no_main]
#![no_std]
#[allow(unused)]
extern crate stm32f1xx_hal;
extern crate cortex_m_rt;
extern crate cortex_m_semihosting;
extern crate panic_semihosting;
extern crate cortex_m;
@skammer
skammer / wget-snapshotpage.md
Created December 10, 2016 18:57 — forked from dannguyen/wget-snapshotpage.md
Use wget to snapshot a page and its necessary visual dependencies

Use wget to mirror a single page and its visible dependencies (images, styles)

Money graphic via State of Florida CFO Vendor Payment Search

Graphic via State of Florida CFO Vendor Payment Search (flair.myfloridacfo.com)

This is a quick command I use to snapshot webpages that have a fun image I want to keep for my own collection of WTFViz. Why not just right-click and save the image? Oftentimes, the webpage in which the image is embedded contains necessary context, such as captions and links to important documentation just incase you forget what exactly that fun graphic was trying to explain.

@skammer
skammer / keybase.md
Last active April 5, 2016 22:12
keybase.md

Keybase proof

I hereby claim:

  • I am skammer on github.
  • I am skammer (https://keybase.io/skammer) on keybase.
  • I have a public key ASD3rCjjGLMq04t39OHMH6v5mDnqK6bhlkjDz9ZlUN30qwo

To claim this, I am signing this object:

html, body {
height: 100%;
}
#sidebar {
position: relative;
float: left;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
@skammer
skammer / wishlist.md
Created November 11, 2012 22:02
Список желаний

Список желаний

Ведётся для друзей (что тебе подарить?) и для себя (куда бы потратить деньги?). Если вы хотите меня порадовать, то можете купить что-нибудь из списка ниже или просто перевести мне денег в качестве комплимента. Перед тем, как что-либо купить, сообщите мне о своём намерении, чтобы не было пересечений в сезонные подарочные периоды. Исключение составляет только список «Прочее».

Книги

function! s:swap_lines( n1, n2 )
let line1 = getline( a:n1 )
let line2 = getline( a:n2 )
call setline( a:n1, line2 )
call setline( a:n2, line1 )
endfunction
function! s:swap_up()
let n = line('.')
if n == 1
" _ _ _ _ _
" __ _| |__ | |__ _ __ _____ _(_) __ _| |_(_) ___ _ __ ___
" / _` | '_ \| '_ \| '__/ _ \ \ / / |/ _` | __| |/ _ \| '_ \/ __|
" | (_| | |_) | |_) | | | __/\ V /| | (_| | |_| | (_) | | | \__ \
" \__,_|_.__/|_.__/|_| \___| \_/ |_|\__,_|\__|_|\___/|_| |_|___/
iabbrev lofd ಠ_ಠ
iabbrev mv/ http://vasiliev.me/
iabbrev widht width
@skammer
skammer / dabblet.css
Created March 25, 2012 23:22 — forked from LeaVerou/dabblet.css
Lined paper that follows the text
/**
* Lined paper that follows the text
* Support: Chrome, FF 3.6+, Saf 5.1+, Opera 11.50+, IE10
*/
/* Just decorative */
padding: 20px;
/* The font. Try changing font-size and see how the lines