first install eza by homebrew
brew install eza
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""psinfo.py | |
This script displays sinfo in a pretty table. | |
""" | |
import platform | |
import subprocess | |
import sys | |
try: |
# -------------------------------------------------------------------- | |
# Recursively find pdfs from the directory given as the first argument, | |
# otherwise search the current directory. | |
# Use exiftool and qpdf (both must be installed and locatable on $PATH) | |
# to strip all top-level metadata from PDFs. | |
# | |
# Note - This only removes file-level metadata, not any metadata | |
# in embedded images, etc. | |
# | |
# Code is provided as-is, I take no responsibility for its use, |
#!/bin/bash | |
## WRF installation with parallel process. | |
# Download and install required library and data files for WRF. | |
# License: LGPL | |
# Jamal Khan <[email protected]> | |
# Tested in Ubuntu 18.04 LTS | |
# basic package managment | |
sudo apt update | |
sudo apt upgrade |
%reload_ext autoreload | |
%autoreload 1 | |
%matplotlib inline | |
import numpy as np | |
import matplotlib.pyplot as plt | |
# Modules imported by devpkg must also be listed here to get the same treatment. | |
%aimport devpkg | |
%aimport devpkg.util |
https://twitter.com/snookca/status/1073299331262889984?s=21
Happy to chat about this. There’s an obvious disclaimer that there’s a cost to css-in-js solutions, but that cost is paid specifically for the benefits it brings; as such it’s useful for some usecases, and not meant as a replacement for all workflows.
(These conversations always get heated on twitter, so please believe that I’m here to converse, not to convince. In return, I promise to listen to you too and change my opinions; I’ve had mad respect for you for years and would consider your feedback a gift. Also, some of the stuff I’m writing might seem obvious to you; I’m not trying to tell you if all people of some of the details, but it might be useful to someone else who bumps into this who doesn’t have context)
So the big deal about css-in-js (cij) is selectors.
// | |
// Author: Jonathan Blow | |
// Version: 1 | |
// Date: 31 August, 2018 | |
// | |
// This code is released under the MIT license, which you can find at | |
// | |
// https://opensource.org/licenses/MIT | |
// | |
// |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
from math import sqrt, pow, sin, cos | |
from math import pi as M_PI | |
M_PI_2 = M_PI * 2 | |
''' | |
original c code: | |
https://raw.githubusercontent.com/warrenm/AHEasing/master/AHEasing/easing.c | |
Copyright (c) 2011, Auerhaus Development, LLC | |
http://sam.zoy.org/wtfpl/COPYING for more details. | |
''' |