Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<head>
<meta charset="utf-8"></meta>
<link rel="shortcut icon" href="#">
</head>
<body>
<script>
class Child {
constructor() {
this.lotsOfMemory = Math.random() + "a".repeat(10 * 1000 * 1000) + Math.random();
@psybuzz
psybuzz / gist:0c46c72e716d36ee3c492dec44680c19
Created June 16, 2020 04:31
VersionConflict error running pip with setuptools 47.3.0
$ virtualenv --system-site-packages ~/piptest -p python3
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in ~/piptest/bin/python3
Also creating executable in ~/piptest/bin/python
Installing setuptools, pip, wheel...
done.
$ source ~/piptest/bin/activate
(piptest) $ pip list
@psybuzz
psybuzz / gist:025ac2c1c55947dba1938cd9d5b520f9
Created February 20, 2020 22:00
Sample TF2-style custom scalars demo
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import app
import tensorflow as tf
# Still requires using v1 APIs.
from tensorboard.summary import v1 as summary_lib
from tensorboard.plugins.custom_scalar import layout_pb2