Skip to content

Instantly share code, notes, and snippets.

View junejie's full-sized avatar

junejie

  • Manila, PH
View GitHub Profile
@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.
@nickjacob
nickjacob / systemd-prblm.service
Last active March 17, 2023 16:11
execute arbitrary bash code/variable substitution in systemd units
[Unit]
Description=Demonstrate Bash
[Service]
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))"
ExecStart=/usr/bin/echo "2 + 2 = ${MYVAR}"