Skip to content

Instantly share code, notes, and snippets.

{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
We can't make this file beautiful and searchable because it's too large.
1262304000000 1262304300000 1262304600000 1262304900000 1262305200000 1262305500000 1262305800000 1262306100000 1262306400000 1262306700000 1262307000000 1262307300000 1262307600000 1262307900000 1262308200000 1262308500000 1262308800000 1262309100000 1262309400000 1262309700000 1262310000000 1262310300000 1262310600000 1262310900000 1262311200000 1262311500000 1262311800000 1262312100000 1262312400000 1262312700000 1262313000000 1262313300000 1262313600000 1262313900000 1262314200000 1262314500000 1262314800000 1262315100000 1262315400000 1262315700000 1262316000000 1262316300000 1262316600000 1262316900000 1262317200000 1262317500000 1262317800000 1262318100000 1262318400000 1262318700000 1262319000000 1262319300000 1262319600000 1262319900000 1262320200000 1262320500000 1262320800000 1262321100000 1262321400000 1262321700000 1262322000000 1262322300000 1262322600000 1262322900000 1262323200000 1262323500000 1262323800000 1262324100000 1262324400000 1262324700000 1262325000000 1262325300000 1262325600000 12

This guide describes how to set up a modern Python development environment on your macOS computer.

  1. Install [Homebrew][homebrew], a popular package manager for macOS. The most up-to-date instructions for doing so can be found on the [Homebrew website][homebrew]. Usually this just entails running the following command:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  2. Install [pyenv][pyenv], a tool for managing multiple installations of Python on your computer. pyenv can be installed via Homebrew:

import os
import requests
from bs4 import BeautifulSoup
def get_app_data(app_url):
app_page = requests.get(app_url, cookies=cookies)
parsed = BeautifulSoup(app_page.text, 'html.parser')
result = []
@chnn
chnn / -
Created June 23, 2016 20:24
diff --git a/Vagrantfile b/Vagrantfile
index 1210469..9db4bf7 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -34,6 +34,7 @@ Vagrant.configure("2") do |config|
a.playbook = "ansible/site.yml"
a.inventory_path = "ansible/local"
a.limit = "all"
+ a.verbose = "vvvv"
# a.raw_ssh_args = ['-o User=h2ometrics', '-o IdentityFile=~/.ssh/id_rsa']
@chnn
chnn / components.task-button.js
Last active June 1, 2016 13:57
Sketching out an “async button” using ember-concurrency
import Ember from 'ember';
import layout from '../templates/components/task-button';
const { Component, computed } = Ember;
/**
A button whose state is derived from an [ember-concurrency task][0].
Suppose in some template context, you have access to the `eggs` and `kale`
"""Simulates expected wait time for a scenario involving 2 trains.
The problem is stated in Exercise 5.6.8 of Colley's _Vector Calculus_:
Suppose that you commute every day to work by subway. You walk to the same
subway station, which is served by two subway lines, both stopping near
where you work. During rush hour, each subway line sends trains to arrive
at the stop every 6 minutes, but the dispatchers begin the schedules at
random times. What is the average time you expect to wait for a subway
train?
@chnn
chnn / keybase.md
Created February 4, 2016 23:56
keybase.md

Keybase proof

I hereby claim:

  • I am chnn on github.
  • I am chnn (https://keybase.io/chnn) on keybase.
  • I have a public key ASC_1Ziwj96Ttfucz6jKiUYcLtQb0iExS_BLxr-vhSnlhQo

To claim this, I am signing this object:

@chnn
chnn / index.html
Last active August 29, 2015 14:27 — forked from jfsiii/.block
I wanted to add diagonal stripes to a SVG bar chart, but wanted to a) avoid using images b) change the color via CSS
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>SVG colored patterns via mask</title>
<style>
/* FF seems to need explicit dimensions */
svg {
width: 500px;
height: 500px;