Skip to content

Instantly share code, notes, and snippets.

View oyvindrobertsen's full-sized avatar

Øyvind Robertsen oyvindrobertsen

  • spacemaker.ai
  • Oslo, Norway
View GitHub Profile
package plan9
import Chisel._
object EnumeratedUInt {
def apply(dir: IODirection = NODIR, enum: Map[Symbol, UInt]): EnumeratedUInt = {
val res = new EnumeratedUInt()
res.create(dir, enum)
return res
}

Keybase proof

I hereby claim:

  • I am oyvindrobertsen on github.
  • I am oyvinrob (https://keybase.io/oyvinrob) on keybase.
  • I have a public key whose fingerprint is BCA3 1B8D 8C26 E028 5E20 9874 99FE 22D2 6549 0032

To claim this, I am signing this object:

def mult(n):
return [[i*j for j in range(1, n+1)] for i in range(1, n+1)]
set nocompatible
filetype plugin indent on
syntax enable
set number
set encoding=utf-8
let mapleader = ","
command Smake silent make
set nomore
(require hytest)
(import [hymnous.request [parse-query-string]])
(defn func [x] (+ x 3))
(test-set parse-query-string
(test = 4 (func 1)))
#! /usr/bin/python
from __future__ import print_function, division
from copy import deepcopy
import os
from scipy.misc.pilutil import imread, imsave
import matplotlib.pyplot as pl
import matplotlib.cm as cm
#OBJS specifies which files to compile as part of the project
OBJS = main.cpp visuals.cpp
#CC specifies which compiler we're using
CC = g++
#INCLUDE_PATHS specifies the additional include paths we'll need
INCLUDE_PATHS = -I/usr/local/include -I/opt/X11/include
#LIBRARY_PATHS specifies the additional library paths we'll need
.thumb
.syntax unified
.include "gpio_constants.s" // Register-adresser og konstanter for GPIO
.text
.global Start
.global GPIO_ODD_IRQHandler
Start:
.thumb
.syntax unified
.include "gpio_constants.s" // Register-adresser og konstanter for GPIO
.text
.global Start
.global GPIO_ODD_IRQHandler
Start:
.thumb
.syntax unified
.include "gpio_constants.s" // Register-adresser og konstanter for GPIO
.text
.global Start
.global GPIO_ODD_IRQHandler
Start: