If you configure git like this:
git config filter.sqlite3.clean 'sqlite3 %f .dump'
git config filter.sqlite3.smudge 'sqlite3 %f'
echo '*.db filter=sqlite3' >> .git/info/attributes
and you have an sqlite3 database in a *.db file:
| #!/bin/bash | |
| if system_profiler SPAudioDataType | grep --quiet Headphones; then | |
| echo plugged in | |
| else | |
| echo not plugged in | |
| fi |
| #!/bin/sh | |
| #_( | |
| #_DEPS is same format as deps.edn. Multiline is okay. | |
| DEPS=' | |
| {:deps {clj-time {:mvn/version "0.14.2"}}} | |
| ' | |
| #_You can put other options here | |
| OPTS=' |
If you configure git like this:
git config filter.sqlite3.clean 'sqlite3 %f .dump'
git config filter.sqlite3.smudge 'sqlite3 %f'
echo '*.db filter=sqlite3' >> .git/info/attributes
and you have an sqlite3 database in a *.db file:
| //Wait for the topics to load | |
| //Then execute the script | |
| //Get all following Topics | |
| const topicsFollowing = document.querySelectorAll('.ObjectCard-footer a') | |
| function unFollowAll() { | |
| topicsFollowing.forEach(topic => { | |
| //clicking unFollow button | |
| topic.click() |
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question:
| ;;; hn.el --- convert hacker news post into org-mode buffer -*- lexical-binding: t -*- | |
| ;; Copyright (C) 2018- Free Software Foundation, Inc. | |
| ;; Author: Johan Ponin <johan.ponin.pro@gmail.com> | |
| ;; Version: 0.0.1 | |
| ;; Package-Version: 20181103.0001 | |
| ;; Keywords: hackernews, org-mode | |
| ;; This program is free software; you can redistribute it and/or modify |
| #!/usr/bin/env zsh | |
| #Install libgen.py, GNU Timeout, and terminal-notifier (macOS only. Just delete the line for other OSes.). Use cron to check for a book regularly. (e.g., `0 9 * * * ~/book-notifier.zsh "little schemer"`) | |
| gtimeout 6s libgen -s "$1" &> /dev/null | |
| if [ $? -eq 124 ]; then | |
| terminal-notifier -message "$1" -title "Book Has Become Available!" | |
| echo "$1 is now available!" | |
| fi |