0x15ee5afa3b8723ef1fb1753f769443285581d0c163bbeb4f2abb3c0ceada69f7
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
var ssbClient = require('ssb-client') | |
ssbClient(function (err, sbot) { | |
sbot.friends.getGraph((err, g) => { | |
// returns a list of pubs | |
sbot.analysis.get(async (err, pubs) => { | |
// remove the pubs from the social graph b/c pubs are not humans | |
pubs.forEach(pub => delete g[pub]) |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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
import 'tachyons' | |
import 'tachyons-base/css/tachyons-base.css' | |
import {h, app} from 'hyperapp' | |
const state = { | |
windows: [] | |
} | |
const actions = { | |
changeURL: value => state => { |
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
(module | |
(type $FUNCSIG$ii (func (param i32) (result i32))) | |
(type $FUNCSIG$iii (func (param i32 i32) (result i32))) | |
(import "env" "printf" (func $printf (param i32 i32) (result i32))) | |
(table 0 anyfunc) | |
(memory $0 1) | |
(data (i32.const 32) "fail\00") | |
(data (i32.const 48) "\88j?$\d3\08\a3\85\e6!(Ew\13\d08") | |
(data (i32.const 64) "\ce\fa\ed\fe\ef\be\ad\de\be\ba\ed\fe\ef\be\fe\ca") | |
(export "memory" (memory $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
// https://people.csail.mit.edu/rivest/Rivest-rc5rev.pdf | |
#include <stdio.h> | |
#include <stdint.h> | |
uint32_t shift_left(uint32_t v, uint32_t n) { | |
return v << n; | |
} | |
uint32_t shift_right(uint32_t v, uint32_t n) { |
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
(module | |
(global $gasUsed (mut i64) (i64.const 0)) | |
(func $useGas (param $gas i64) | |
get_global $gasUsed | |
get_local $gas | |
i64.add | |
set_global $gasUsed | |
) | |
(global $cb_dest (mut i32) (i32.const 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
(module | |
(global $cb_dest (mut i32) (i32.const 0)) | |
(global $sp (mut i32) (i32.const -32)) | |
(global $init (mut i32) (i32.const 0)) | |
(global $gasUsed (mut i64) (i64.const 0)) | |
(func $useGas (param $gas i64) | |
get_global $gasUsed | |
get_local $gas | |
i64.add |
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
(module | |
(global $cb_dest (mut i32) (i32.const 0)) | |
(global $sp (mut i32) (i32.const -32)) | |
(global $init (mut i32) (i32.const 0)) | |
;; memory related global | |
(global $memstart i32 (i32.const 33832)) | |
;; the number of 256 words stored in memory | |
(global $wordCount (mut i64) (i64.const 0)) | |
;; what was charged for the last memory allocation |
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
(module | |
(global $cb_dest (mut i32) (i32.const 0)) | |
(global $sp (mut i32) (i32.const -32)) | |
(global $init (mut i32) (i32.const 0)) | |
;; memory related global | |
(global $memstart i32 (i32.const 33832)) | |
;; the number of 256 words stored in memory | |
(global $wordCount (mut i64) (i64.const 0)) | |
;; what was charged for the last memory allocation |
NewerOlder