This article is now published on my website: Prefer Subshells for Context.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# coding=utf-8 | |
# Python version of Zach Holman's "spark" | |
# https://github.com/holman/spark | |
# by Stefan van der Walt <[email protected]> | |
""" | |
USAGE: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <pre> | |
# This file is in the public domain, so clarified as of | |
# 2009-05-17 by Arthur David Olson. | |
# So much for footnotes about Saudi Arabia. | |
# Apparent noon times below are for Riyadh; your mileage will vary. | |
# Times were computed using formulas in the U.S. Naval Observatory's | |
# Almanac for Computers 1987; the formulas "will give EqT to an accuracy of | |
# [plus or minus two] seconds during the current year." | |
# |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.
- Create user
gituser
via Diskstation interface (with File Station and WebDAV privilages) - Add new shared folder called
git
(located at/volume1/git
) with read/write access forgituser
andadmin
. This folder will hold all the repos. - Install Git Server package via Diskstation
Activate SSH
Connect via SSH with either
ssh root@IP
or
ssh admin@IP
and sudo su
Change VERSION file as needed.
vi /etc.defaults/VERSION
Change:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from PIL import Image | |
import numpy as np | |
import tensorflow as tf | |
import tensorflow_hub as hub | |
# smooth values from point a to point b. | |
STEPS = 100 | |
pt_a = np.random.normal(size=(512)) |