This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
# An example to get the remaining rate limit using the Github GraphQL API. | |
import requests | |
headers = {"Authorization": "Bearer YOUR API KEY"} | |
def run_query(query): # A simple function to use requests.post to make the API call. Note the json= section. | |
request = requests.post('https://api.github.com/graphql', json={'query': query}, headers=headers) | |
if request.status_code == 200: |
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
To remove a submodule you need to:
Awesome-WM is a X11 window manager, that is configured via Lua. Fennel is a Lisp for Lua. This shows a general setup of how to write your awesome-wm config using fennel directly without the compilation step (which would also work, but is not needed).
Fetch a recent Fennel version (the
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
JRM's Syntax-rules Primer for the Merely Eccentric | |
In learning to write Scheme macros, I have noticed that it is easy to | |
find both trivial examples and extraordinarily complex examples, but | |
there seem to be no intermediate ones. I have discovered a few tricks | |
in writing macros and perhaps some people will find them helpful. | |
The basic purpose of a macro is *syntactic* abstraction. As functions | |
allow you to extend the functionality of the underlying Scheme | |
language, macros allow you to extend the syntax. A well designed |
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)