This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
{ | |
description = "C/C++ environment"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, utils, ... }@inputs: | |
utils.lib.eachDefaultSystem ( |
# my poetry #serial_number_is_a_concept_irreleant_to_me_atm | |
# | |
# 01:02 am Sep 25th 2021 | |
# he/him | |
# Person from Taipei, Taiwan @Berlin, Germany | |
# | |
# This is poetry, not prod code. | |
# BACK OFF!!! coding cops | |
# | |
# This whole thing can be beta-or-alpha reduced (or whatever it's called) |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
I hereby claim:
To claim this, I am signing this object:
xml2_sax_sample: xml2_sax_sample.c | |
gcc -o xml2_sax_sample `xml2-config --cflags --libs` xml2_sax_sample.c | |
clean: | |
rm xml2_sax_sample |
[alias] | |
st = status | |
stat = status | |
ci = commit | |
co = checkout | |
br = branch | |
ls = ls-files | |
undo = reset --soft HEAD^ | |
merge = merge --no-commit | |
cdiff = diff --cached |
This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.
To use the script, follow the instructions given in the script's docstring.
For further details, read this blogpost.
The procedure outlined here is inspired by this answer on Stack Overflow.
[tox] | |
envlist=py27,lint | |
[testenv] | |
downloadcache={homedir}/.pipcache | |
distribute=True | |
sitepackages=False | |
[testenv:py27] | |
deps=nose |