This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ sources ? import ./sources.nix, pkgs ? import sources.nixpkgs { } }: | |
with pkgs; | |
let | |
erlang = pkgs.erlang.override { | |
version = "26.0-rc2"; | |
sha256 = "1xqzdqniv6af7cajd3agnqdi12n4fy644p8z07k7r24cp1lz7y03"; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule SendAfter do | |
@moduledoc """ | |
Simple assistance wrapper for SendAfter calls to record the TimerRef's. | |
Idea is then to use this data to display an internal page, in order to verify whether | |
our GenServers run as intended. | |
""" | |
@doc """ | |
Wrap Process.send_after/4 to ensure that we can record timer data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<opml version="1.0"> | |
<head> | |
<title>newsboat - Exported Feeds</title> | |
</head> | |
<body> | |
<outline type="rss" xmlUrl="http://comonad.com/reader/feed/" htmlUrl="http://comonad.com/reader" title="The Comonad.Reader"/> | |
<outline type="rss" xmlUrl="http://www.haskellforall.com/feeds/posts/default" htmlUrl="http://www.haskellforall.com/" title="Haskell for all"/> | |
<outline type="rss" xmlUrl="http://blog.sigfpe.com/feeds/posts/default" htmlUrl="http://blog.sigfpe.com/" title="A Neighborhood of Infinity"/> | |
<outline type="rss" xmlUrl="https://www.fpcomplete.com/blog/rss.xml" htmlUrl="https://www.fpcomplete.com/blog" title="Blog"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ build/x86_64-unknown-linux-gnu/stage1/bin/rustc -vV | |
rustc 1.30.0-dev | |
binary: rustc | |
commit-hash: unknown | |
commit-date: unknown | |
host: x86_64-unknown-linux-gnu | |
release: 1.30.0-dev | |
LLVM version: 8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SDK=/home/lkurusa/dev/freedom-e-sdk | |
SDK_PREFIX=$(SDK)/work/build/riscv-gnu-toolchain/riscv64-unknown-elf/prefix/bin | |
CROSS=$(SDK_PREFIX)/riscv64-unknown-elf- | |
CFLAGS=-g \ | |
-march=rv32imac \ | |
-mabi=ilp32 \ | |
-mcmodel=medany | |
LINKER_SCRIPT=hifive1.lds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright (c) 2018 Matthew Daley | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to | |
# deal in the Software without restriction, including without limitation the | |
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
# sell copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char *s; | |
while (--argc > 0 && (*++argv)[0] == '-') | |
for(s = argv[0]+1; *s != '\0'; s++) | |
switch(*s) { | |
case 'x': | |
/* Set appropriate flags for 'x' option */ | |
break; | |
case 'n': | |
/* Set appropriate flags for 'n' option */ | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
WHAT=$1 | |
WHERE=$2 | |
[[ -z $WHAT ]] && echo Usage: $0 \<what\> \<to-where\> && exit 1 | |
[[ -z $WHERE ]] && echo Usage: $0 \<what\> \<to-where\> && exit | |
_TMPFILE=$(mktemp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- | |
-- efine these functions somewhere in your rc.lua or utils.lua | |
-- | |
-- | |
function l_split(str, pat) | |
local t = {} -- NOTE: use {n = 0} in Lua-5.0 | |
local fpat = "(.-)" .. pat | |
local last_end = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::cell::RefCell; | |
const x: RefCell<bool> = RefCell::new(false); | |
fn main() { | |
let _x = x.borrow(); | |
if _x.clone() { | |
println!("True"); | |
} else { |
NewerOlder