Skip to content

Instantly share code, notes, and snippets.

@bollwyvl
bollwyvl / README.md
Last active July 30, 2020 04:34
Using pypy on binder

on

Binder

Thanks to the toil of the folks at conda-forge, you can try out PyPy, a fast alternative Python implementation.

Not everything is available yet, but the bot just keeps on migrating: there's still lots to do, so stay tuned!

from collections import UserString
class ResolvedDocString(UserString):
__class__ = str
class DeferDocString(UserString):
def __init__(self, f):
self._f = f
@bollwyvl
bollwyvl / IFastAPI.ipynb
Last active April 21, 2020 22:55
IFastAPI
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shakna-israel
shakna-israel / Prose.md
Last active November 15, 2023 22:06
Obfuscating Python

Obfuscating Python

Obfuscation isn't difficult in most programming languages. It's why we have "good practices" because it is so easy to hide what you mean in badly written code.

Obfuscation tends to be even easier in dynamic languages because of how forgiving they tend to be - and because they tend to give you direct access to the environment so that you can manipulate it.

Today, for fun, I'm going to obfuscate this code:

def _(n):

if n <= 0:

@vimtaai
vimtaai / markdown-flavors.md
Last active April 19, 2024 23:08
Comparison of features in various Markdown flavors

Comparison of syntax extensions in Markdown flavors

I created a crude comparison of the syntax of the various common Markdown extensions to have a better view on what are the most common extensions and what is the most widely accepted syntax for them. The list of Markdown flavors that I looked at was based on the list found on CommonMark's GitHub Wiki.

Flavor Superscript Subscript Deletion*
Strikethrough
Insertion* Highlight* Footnote Task list Table Abbr Deflist Smart typo TOC Math Math Block Mermaid
GFM
@psychemedia
psychemedia / Testing examples.md
Last active October 5, 2023 07:09
Examples of things we can test for autograding and auto-feedback

Test Examples

Trying to identify testable things for use in autograders and automated code feedback tools...

Automated testing of computer code can be used to support learning in several ways.

For example, automated tests may be used to:

@gwangjinkim
gwangjinkim / install-and-start-postgresql-in-conda-locally
Last active April 23, 2024 05:27
How to install and run postgresql in conda
This gist I write, because I couldn't find step by step instructions
how to install and start postgresql locally (using conda within a conda environment - with the result
that you can run it without sudo/admin rights on your machine!)
and not globally in the operating system (which requires sudo/admin rights on that machine).
I hope, this will help especially people new to postgresql (and those who don't have sudo/admin rights on a specific machine but want
to run postgresql there)!
####################################
# create conda environment

This is a list of people to follow on Twitter who are involved in accessibility. These people were sourced from the following Twitter feed:

Aubrey Diana Blanche @adblanche:

"Looking for speakers / experts on #disability / #accessibility specifically in people processes, and especially recruiting. Paid. Especially appreciative of RTs, and response from folks with a focus on mobility, hearing, vision concerns and/or autism, ADHD."


You can also access my Twitter list "Accessibility" @simply_cima

| Name | Twitter Handle | Twitter Bio & Other Notes |

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.