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
#lang racket | |
(require | |
syntax/parse/define | |
(for-syntax racket/syntax)) | |
; Define an instance of a structure: | |
; - name: the name of the instance | |
; - sname: the name of the struct type | |
; - arg ...: the arguments for the struct type constructor |
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
#lang racket | |
(require "tiny-hdl-macros.rkt") | |
(entity half-adder ([input a] [input b] [output s] [output co])) | |
(entity full-adder ([input a] [input b] [input ci] [output s] [output co])) | |
(architecture half-adder-arch half-adder | |
(assign (port-ref half-adder s) (xor (port-ref half-adder a) (port-ref half-adder b))) |
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
sudo apt install git cmake clang-3.9 opencl-headers ocl-icd-dev ocl-icd-opencl-dev | |
sudo ln -s /usr/bin/clang{-3.9,} | |
git clone https://github.com/doe300/VC4C.git | |
git clone https://github.com/doe300/VC4CL.git | |
git clone https://github.com/doe300/VC4CLStdLib.git | |
mkdir VC4C/build | |
cd VC4C/build |
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
from gi.repository import Gtk | |
# | |
# See https://gist.github.com/3508693 for the version with PyGTK and GTK2 | |
# | |
# Create a GTK entry with a primary and secondary icons. | |
# Both icons are set sensitive. | |
# | |
# With GTK 2.24, if the entry is insensitive before the window is showed, |
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 pygtk | |
pygtk.require("2.0") | |
import gtk | |
# | |
# Create a GTK entry with a primary and secondary icons. | |
# Both icons are set sensitive. | |
# | |
# If the entry is insensitive before the window is showed, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!-- | |
Sozi 12.04 adds frame numbers in the top-left corner of the screen | |
but no option (yet) to disable them. | |
Add this to your document if you really want to hide frame numbers. | |
It is safer not to modify the <style> element installed by Sozi: | |
it would be overwritten on the next upgrade. | |
--> | |
<style> | |
#sozi-framenumber { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
pkgname=glib2-ubuntu | |
pkgver=2.29.14 | |
_ubuntu_ver=0ubuntu1 | |
pkgrel=1 | |
pkgdesc="Common C routines used by GTK+ 2.4 and other libs" | |
url="http://www.gtk.org/" | |
arch=(i686 x86_64) | |
license=("LGPL") | |
depends=("pcre>=8.02") | |
provides=("glib2=${pkgver}") |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder