Skip to content

Instantly share code, notes, and snippets.

View dvc94ch's full-sized avatar

David Craven dvc94ch

View GitHub Profile
@dvc94ch
dvc94ch / README.md
Last active October 12, 2021 19:23

dvc94ch's GitHub stats

sunshine identity proof

I hereby claim:

  • I am dvc94ch on github.
  • I am 3 on the substrate chain with genesis hash mJ48g+smjh1YYeMg7oEE1r9jrNHrzPp2BSPVrKQlP1cE.
  • I have a public key 5DUng6CKfuobTimWzapbtsm2vhkDQvx4JM4NkYoG4LDuvJFC valid at block with hash m72BgLDy3Ejff+F81i0DVewasKRGDG4Qv3PxEb6V/dF0.

To claim this, I am signing this object:

Overview of the package chain project

  • Package chain is the first truly decentralized software distribution mechanism. Software distributed with package chain is guaranteed to work on any computer running a package chain client.
  • Package chain blures the line between package management and incremental build caching, leading to reduced compile times and higher developer productivity.
  • Getting package managers right is hard. Package chain comes with a reference package manager, which is ideal for new and niche programming languages to
@dvc94ch
dvc94ch / e310x.svd
Created September 7, 2017 21:54
svd file for e310x
<?xml version="1.0" encoding="utf-8"?>
<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD.xsd" >
<vendor>SiFive</vendor>
<name>FE310</name>
<addressUnitBits>8</addressUnitBits>
<width>32</width>
<size>32</size>
<access>read-write</access>
@dvc94ch
dvc94ch / relocations.py
Created August 15, 2017 12:57
RISCV relocations model
def read32le(hex):
b0, b1, b2, b3 = hex.split(' ')
return int(b3 + b2 + b1 + b0, 16)
def read64le(hex):
b0, b1, b2, b3, b4, b5, b6, b7 = hex.split(' ')
return int(b7 + b6 + b5 + b4 + b3 + b2 + b1 + b0, 16)
def write32le(int):

Keybase proof

I hereby claim:

  • I am dvc94ch on github.
  • I am dvc (https://keybase.io/dvc) on keybase.
  • I have a public key ASDEV5A1kp9XfEC6gmqKNFpLCI10RWZPbUDdn4P_--JF6Ao

To claim this, I am signing this object:

@dvc94ch
dvc94ch / dining-philosophers.c
Created November 2, 2016 16:38
Dining philosophers in C11
/**
* Dining Philosophers
* ===================
*
* This is a solution to a traditional concurrency problem called the dining
* philosophers.
* https://en.wikipedia.org/wiki/Dining_philosophers_problem
*
* Five philosophers are sitting at a round table. Each philosopher has a fork
* to their right. Each philosopher needs to alternate between eating and