Skip to content

Instantly share code, notes, and snippets.

View obiknows's full-sized avatar
🥋
cookin'

Obinna obiknows

🥋
cookin'
  • ask me
View GitHub Profile
@obiknows
obiknows / blockchain.go
Created May 30, 2018 06:32
A Tiny Blockchain
package main
import (
"crypto/sha256"
"encoding/hex"
"encoding/json"
"io"
"log"
"net/http"
"os"
@obiknows
obiknows / golang.md
Created April 8, 2018 14:05
A Golang Reference Sheet
@obiknows
obiknows / keybase.md
Created January 9, 2018 14:48
github Keybase

Keybase proof

I hereby claim:

  • I am obiknows on github.
  • I am thes0urce (https://keybase.io/thes0urce) on keybase.
  • I have a public key ASCHULlo5BufXS-0Up-sPKOcKRzq0RdXWBkSiVRrTiJKoAo

To claim this, I am signing this object:

@obiknows
obiknows / docker-compose-template.yaml
Created December 11, 2017 00:31
Example Docker Compose .yaml file
version: "3"
services:
redis:
image: redis:alpine
ports:
- "6379"
networks:
- frontend
deploy:
@obiknows
obiknows / zscroll.html
Created June 6, 2017 00:30
Scrolling along the Z-Axis
<html>
<head>
<title>Scrolling along the Z-Axis</title>
<!--
Example from http://eng.wealthfront.com/2012/03/scrolling-z-axis-with-css-3d-transforms.html
Assumes browser window is sized at a height of 400px (the size of the black box).
-->
<style>
body{height:600px;}
#viewport {
Test:
make clean && make
./warhol.native -c < tests/tppp.wl > tppp.ll
lli tppp.ll
Source:
fun int main() {
int[2] k;
k[0] = 0;
Test:
make clean && make
./warhol.native -c < tests/tfun.wl > tfun.ll
lli tfun.ll
Source:
fun int prt3() {
print(3);
return 0;
}
@obiknows
obiknows / tbrack.intermediate
Last active May 11, 2017 02:21
tbrack.wl test
make clean && make
./warhol.native -c < tests/tbrack.wl > tbrack.ll
lli tbrack.ll
; ModuleID = 'Warhol'
@fmt = private unnamed_addr constant [4 x i8] c"%d\0A\00"
declare i32 @printf(i8*, ...)
@obiknows
obiknows / hw8prelab.md
Last active April 20, 2017 18:19
HW 8 Prelab
  1. host is a DNS lookup utility that can be used with a domain name to return a corresponding IP address.

a. The top-level domain is the highest level domain name in a domain name. b. The CNAME is a domain name that is an alias for another domain name. c. A Resolver is another name for the client-side of DNS and is responsible for iniaiting the query to be translated. d. A Name server is another name for the server-side of DNS and is responsible to hosting DNS records and responding to resolvers. e. A label is a part of a DNS domain name that is delimitted by dots. f. A FQDN is the full domain name of a host on the Internet g. BIND is software run on DNS servers that translates domain names to IPs and vice-versa. h. Inverse lookup or reverse lookup is a DNS query that sends an IP address with the aim of receiving the corresponding domain name.