This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>A wrapper around FormData</title> | |
<style> | |
form > div { margin-bottom: 1em; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang=en> | |
<head> | |
<meta charset=utf-8> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
.spinner { | |
margin: 0; | |
display: inline-block; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang=en> | |
<head> | |
<meta charset=utf-8> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> | |
<script src="./index.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### mlevil | |
echo "-x${HOME}/.mlevil.lua" | |
# Normal mode | |
echo '-Kkmap_normal,,0' | |
# (define-key evil-normal-state-map "a" 'evil-append) | |
# (define-key evil-normal-state-map "A" 'evil-append-line) | |
# (define-key evil-normal-state-map "c" 'evil-change) | |
# (define-key evil-normal-state-map "C" 'evil-change-line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
####### | |
######### | |
########### | |
############# | |
########### | |
# ########### # | |
################# | |
# ########### # | |
##### ############# ##### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Wrapper to fetch CSRF token and authenticate via the login page | |
url='http://localhost:3002' | |
login="${url}/sign_in" | |
curl -sS -c cookies.txt "$login" | | |
htmlstar sel -t -v "//_:input[@name='csrf_token']/@value" -o ' | |
' | xargs -I{} curl -sS -c cookies.txt -b cookies.txt "$login" \ | |
--data-urlencode 'user[email]=me@example.com' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Default compiler settings used, unless noted otherwise. Host system is Fedora | |
x86_64. Linked libs produced via `ldd`. | |
Linked libs common to all below: linux-vdso libc ld-linux | |
Size Lang Specific libs Common libs | |
18K c - - | |
20K luastatic liblua libm libdl | |
22K vala libgobject libglib libffi libpcre libpthread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang=en> | |
<head> | |
<meta charset=utf-8> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script> | |
const el = h('div', {className: 'shadow-demos'}, [ | |
h('style', ` | |
.shadow-demos { | |
width: 300px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In my opinion the simple vs. easy division is often represented when coding | |
// to "layers of abstraction". Having to context-switch and switch to | |
// a different layer to solve a problem is noise that distracts you from the | |
// problem you were originally trying to solve. | |
// For example, if you're trying to draw a paginating, tabular, grid view of | |
// data to the screen it is distracting when you have to stop and wire up | |
// a for-loop to sum the total for the current page then again for all records. | |
// --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang=en> | |
<head> | |
<meta charset=utf-8> | |
<title>rx-drag-to-reorder</title> | |
<style> | |
#container { | |
width: 30em; | |
} |
NewerOlder