Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ipmb
ipmb / 0_default_tree.md
Last active May 17, 2022 00:37
Django Logging Variations

Default Django Logging Tree

app.py

#!/usr/bin/env python
import os

import django
import logging_tree
@kiok46
kiok46 / bridge.md
Last active February 16, 2022 08:15
Bridge React-Native and JS

Content of the Gist is from a talk by Peggy Rayzis at Chain React 2017: Chain React 2017: Breaking Down Bridging in React Native by Peggy Rayzis


In order for a native code to talk to JS you would need a bridge.

  • You need to integrate a third-party SDK.
  • High perfomance is crutial
  • You are building a brownfiel app
  • You need access to a platform to a platform API. (Camera, Gyroscope etc.), You will need to use a opensource library or create a bridge.
@perrygeo
perrygeo / der.py
Created March 9, 2017 23:56
der, the human-readable dir() with types and interfaces
from __future__ import print_function
from collections import OrderedDict
from numbers import Number
import collections
import sys
PY3 = sys.version_info[0] == 3
if PY3:
string_types = str,
@josdirksen
josdirksen / default.css
Last active February 25, 2018 20:35
Voronoi fractals using d3.js
* {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
span {
font-size: smaller;
}
@syntagmatic
syntagmatic / .block
Last active January 9, 2017 19:03
Continuous Legend
border: no
height: 260
license: gpl-3.0
@saily
saily / json_restore_hierarchy
Last active November 21, 2018 10:58
Restore JSON hierarchy in Weblate PRE_COMMIT_SCRIPTS
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import argparse
import codecs
import json
__author__ = 'Daniel Widerin <daniel@widerin.net>'
__license__ = 'MIT'
@EderSantana
EderSantana / CATCH_Keras_RL.md
Last active October 16, 2023 08:32
Keras plays catch - a single file Reinforcement Learning example
@Kcnarf
Kcnarf / .block
Last active December 3, 2018 08:33
wheels on wheels on wheels
license: mit
@jfpuget
jfpuget / Mandelbrot Speed.ipynb
Created January 31, 2016 10:16
How To Quickly Compute The Mandelbrot Set In Python: an experiment with parallelism and gpu computing using Numpy, Numexpr, Numba, Cython, PyOpenGL, and PyCUDA.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.