Skip to content

Instantly share code, notes, and snippets.

Danny Bautista PyroLagus

Block or report user

Report or block PyroLagus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@PyroLagus
PyroLagus / playground.rs
Created Apr 19, 2019 — forked from anonymous/playground.rs
Shared via Rust Playground
View playground.rs
macro_rules! enum_with_str_representation {
(enum $enum_name:ident {
$($variant:ident => $nice_name:expr,)+
}) => {
#[derive(Debug, PartialEq, Eq, Clone, Hash)]
enum $enum_name {
$($variant),+
}
impl ::std::fmt::Display for $enum_name {
View keybase.md

Keybase proof

I hereby claim:

  • I am PyroLagus on github.
  • I am pyrolagus (https://keybase.io/pyrolagus) on keybase.
  • I have a public key whose fingerprint is 2728 CF12 DC77 54E8 74C7 2139 5626 FA71 4A69 5D88

To claim this, I am signing this object:

View username-change-announcement.txt
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
I have changed my standard username from codehero/c0dehero to PyroLagus.
As part of that change, I have created the new keybase account https://keybase.io/pyrolagus, which I will use from now on.
(The old account was https://keybase.io/codehero)
My official email address is now pyrolagus@nerdpol.ch, and emails meant for me should be sent to that address.
(The old email addresses were codehero@nerdpol.ch and codehero@coding4coffee.org)
Additionally, I have generated a new pgp key and revoked the old one.
I have included both my new public key and the revocation certificate for my old key below.
View gist:150e69ff775e22d101f3a4328c5950ad
function Point(x, y) {
this.x = x;
this.y = y;
}
Point.prototype = {
west: function() {
return new this(this.x-1, this.y);
},
east: function() {
View gist:f7d86fff95550a5af688
splitWith :: (a -> Bool) -> [a] -> [[a]]
splitWith p (x:xs) | p x = splitWith p xs
| otherwise = [x] : splitWith p xs
splitWith _ [] = []
View pkglist.txt
alsa-utils
aspell
autoconf
automake
bash
bind-tools
binutils
bison
bleachbit
blender
View gist:9668e069c8eae31f8e6d
{ stdenv, fetchFromGitHub, cmake
, wayland, pixman, libxkbcommon, udev, libinput
, libX11, libxcb, x11
, mesa #nvidia_x11
, dbus, systemd
}:
stdenv.mkDerivation rec {
name = "wlc-${version}";
version = "5453a91201";
View gist:13d09b692a679d6a46d8
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, wayland, xwayland, pixman, libxkbcommon, udev, libinput, libpthreadstubs
, libX11, libxcb, libXdmcp, x11, libxshmfence
, mesa #nvidia_x11
, dbus, systemd
}:
let srcs = {
wlc = fetchFromGitHub {
owner = "Cloudef";
View gist:25b55736f91f576a9ae2
codehero@wheatley ~ % nix-build --show-trace ./nixpkgs -A wlc
these derivations will be built:
/nix/store/n0n37s7wqyhq2wvhdvmxi48k8nw0sxyc-wlc-5453a91201.drv
building path(s) /nix/store/vhjjk1xsxypl7h91x5ynd6f3h8hzrmda-wlc-5453a91201
unpacking sources
unpacking source archive /nix/store/c7asypsnb2dw7jhqgks77y5bpkdqdbbs-wlc-5453a91201a6b90f1f7fc093ddb578bfad18461d-src
source root is wlc-5453a91201a6b90f1f7fc093ddb578bfad18461d-src
'wlc-5453a91201a6b90f1f7fc093ddb578bfad18461d-src/lib/chck/src/i2q7bgm4w3wjw42an9axw02ccbc2lyl4-chck-a11a7c064d786706269e2b9f5516d898fec10402-src' -> '/nix/store/i2q7bgm4w3wjw42an9axw02ccbc2lyl4-chck-a11a7c064d786706269e2b9f5516d898fec10402-src'
patching sources
configuring
View gist:6a6e5ab23a397cabe0de
{ stdenv, fetchFromGitHub, cmake
, wayland, pixman, libxkbcommon, udev, libinput
, libX11, libxcb, x11
, mesa #nvidia_x11
, dbus, systemd
}:
stdenv.mkDerivation rec {
name = "wlc-${version}";
version = "5453a91201";
You can’t perform that action at this time.