Skip to content

Instantly share code, notes, and snippets.

View strager's full-sized avatar

strager strager

View GitHub Profile
Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set
from abc import ABC, ABCMeta
import abc
import typing
from typing import TypeVar, Generic, Any, Type
T = TypeVar("T")
C = TypeVar("C", bound="Semigroup")
#include <stdio.h>
union my_result_data {
int integer;
float floating;
};
enum my_result_kind {
MY_RESULT_INTEGER,
MY_RESULT_FLOATING,
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void print_vector(vector<string> items) {
for (string s : items) {
cout << ' ' << s;
}
x = 1
y = x
x += 2
print("numbers:", x, y)
# numbers: 3 1
x = ("hello",)
y = x
x += ("world",)
print("tuples:", x, y)
$ (cd ~/Projects/nixpkgs/ && git rev-parse HEAD)
f11fd5d4e8801df18e8a5a8a823332b16b700a3c
$ cd /Users/strager/tmp/nix-rcs
$ nix-shell -A rcs ~/Projects/nixpkgs/ --pure
[nix-shell:~/tmp/nix-rcs]$ genericBuild
unpacking sources
unpacking source archive /nix/store/xvf3gw71ycaqw2kzq7wyr8j1x827w9qg-rcs-5.9.4.tar.xz
source root is rcs-5.9.4
$ git rev-parse HEAD
f11fd5d4e8801df18e8a5a8a823332b16b700a3c
$ nix-build -A rcs .
these derivations will be built:
/nix/store/p486v0hnhswgd4adnkpjg5j6gxpvasap-rcs-5.9.4.drv
building '/nix/store/p486v0hnhswgd4adnkpjg5j6gxpvasap-rcs-5.9.4.drv'...
unpacking sources
unpacking source archive /nix/store/xvf3gw71ycaqw2kzq7wyr8j1x827w9qg-rcs-5.9.4.tar.xz
source root is rcs-5.9.4
setting SOURCE_DATE_EPOCH to timestamp 1421923362 of file rcs-5.9.4/build-aux/.version
Frame Nature HP/At/De/SA/SD/Sp
88 Docile 20/12/11/10/10/ 9
89 Lax 20/12/11/11/ 9/ 9
90 Docile 20/13/11/10/11/ 9
91 Bashful 20/12/11/10/10/ 9
92 Naughty 20/13/10/10/ 9/10
93 Bashful 21/12/10/11/10/ 9
94 Gentle 20/13/ 9/10/12/ 9
95 Timid 20/10/11/10/10/11
96 Impish 21/12/11/ 9/11/ 9
@strager
strager / .babelrc
Last active January 18, 2018 01:56
{
"presets": ["flow"]
}