Original Author: Rui Ueyama (creator of the mold linker)
Translated by @windowsboy111
Minimally edited by @lleyton
In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.
Hope it helps future users to better understand this two libraries internals and functionality.
Goals: | |
Easy to learn and use by beginning programmers | |
Easy to relearn and use by "perpetual intermediate" programmers | |
Suitable for use as a front-end language (not in a browser) | |
Not infuriating to advanced programmers modulo syntax | |
Support a "professional" syntax | |
Case insensitive (except strings) | |
Everything should be as simple as possible but no simpler | |
High-level design choices: |
# How to use a GPG key for SSH authentication | |
# Tested on Ubuntu 20.04 LTS | |
# Enable SSH support in gpg-agent: | |
echo enable-ssh-support > ~/.gnupg/gpg-agent.conf | |
# Cache GPG & SSH passwords for 24 hours (the reboot will clear the password cache) | |
echo max-cache-ttl 86440 >> ~/.gnupg/gpg-agent.conf | |
echo max-cache-ttl-ssh 86440 86440 >> ~/.gnupg/gpg-agent.conf | |
echo default-cache-ttl 86440 >> ~/.gnupg/gpg-agent.conf |
(library (documentation) | |
(export define/document define-syntax/document | |
document describe) | |
(import (rnrs)) | |
(define doc-list '()) | |
(define (document thing description) | |
(set! doc-list (cons (cons thing (syntax->datum description)) doc-list))) |
(import (chibi parse)) | |
;; JSON Parsing | |
;; Edwin Watkeys | |
;; Nov 25, 2018 | |
;; | |
;; Example usage: | |
;; | |
;; (parse datum "{\"foo\": true, \"bar\" : [0,1,2,3.14, .12]}") | |
;; => (("foo" #t) |
Name | Age | Address | |
---|---|---|---|
Paul | 23 | 1115 W Franklin | |
Bessy the Cow | 5 | Big Farm Way | |
Zeke | 45 | W Main St |
import multiprocessing | |
import re | |
from celery import Celery | |
from celery.worker.autoscale import Autoscaler as CeleryAutoscaler | |
class DAAutoscaler(CeleryAutoscaler): | |
# Try to keep the load above this point. | |
LOAD_MIN = .8 | |
# Try to keep the load below this. | |
LOAD_MAX = 1.1 |
This is a proposal for ReactiveConf 2017 open call for Lightning talks. If you'd like to make this talk happen, please 🌟 this gist and retweet my tweet. 🙏
If you're on your phone, please request the 🖥 desktop site to star this gist 😇
I would talk about some myths on Jest & Enzyme. Moreover to stop the comparison of Jest and Enzyme. Instead would focus on how they can work together to test well your React Components. The talk would focus on "How Jest and Enzyme complement each other" and can help you test React components in a better way.
- If you are writing tests: you are already winning.
- If you are not writing tests:let me encourage you to start.
- Jest.
- Snapshot Testing.
from osgeo import ogr | |
data = ogr.Open('/path/to/vector/file') | |
print('Data Name:', data.GetName()) | |
# get a layer with GetLayer('layername'/layerindex) | |
for layer in data: | |
print('Layer Name:', layer.GetName()) | |
print('Layer Feature Count:', len(layer)) |