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
---------------------------------------------------------------------------------- | |
-- Company: | |
-- Author: Florian Mayer | |
-- | |
-- Create Date: 16:18:13 12/09/2015 | |
-- Design Name: | |
-- Module Name: seven_segment - Behavioral | |
-- Project Name: | |
-- Target Devices: | |
-- Tool versions: |
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
; picoblaze assembler. Warning: Uses modified assembler | |
; implementing the domain specifiy instruction "segset" | |
start: | |
call erase | |
call lw | |
call set_pattern | |
call lw | |
jump, start |
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
\documentclass[12pt]{article} | |
\usepackage{color} | |
\usepackage{listings} | |
\definecolor{fgcolor}{RGB}{0,0,0} | |
\definecolor{bgcolor}{RGB}{255,255,255} | |
\lstset{ | |
numbers=left, | |
numberstyle=\tiny\ttfamily{}, | |
stepnumber=1, |
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
execChroot(){ | |
echo "$@" | chroot /mnt/ /bin/bash || { | |
return 1 | |
} | |
return 0 | |
} | |
DEVICE=sdb1 | |
DEV=sdb |
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
#quinebomb | |
( | |
quote=39 | |
code=( | |
'quote=39' | |
'' | |
'code=(' | |
')' | |
'' |
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
package afp; | |
import java.util.Arrays; | |
import java.util.NoSuchElementException; | |
import java.util.Objects; | |
import java.util.Random; | |
public class AfpList { | |
public final static int DEBUG = 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
digraph g{ | |
graph [ranksep="3.0 equally"]; | |
edge [arrowhead=vee, color=black]; | |
node [shape=record, color=indigo]; | |
node__0 [label="{{Entity}|{name|fir_filter}}"]; | |
node_0_1 [label="{{InterfacePort}|{port mode|PORT_IN}|{port name|rst}}"]; | |
node_00_2 [label="{{VTypePrimitive}|{packed?|1}|{type|STDLOGIC}}"]; | |
node_1_2 [label="{{InterfacePort}|{port mode|PORT_IN}|{port name|clk}}"]; | |
node_10_3 [label="{{VTypePrimitive}|{packed?|1}|{type|STDLOGIC}}"]; | |
node_2_3 [label="{{InterfacePort}|{port mode|PORT_IN}|{port name|coef_ld}}"]; |
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
#include <iostream> | |
#include <limits> | |
using namespace std; | |
template<bool cond, typename T, typename E> class If { | |
public: | |
typedef T result; | |
}; |
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
#include <iostream> | |
/* Loops */ | |
using namespace std; | |
template<int i> | |
struct Statement { | |
enum { n = i }; | |
static void execute(){ |
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
#include <iostream> | |
using namespace std; | |
const int endValue = ~(~0u >> 1); // value for nil (smalles int) | |
struct tmp_list_end { | |
enum { head = endValue }; | |
typedef tmp_list_end tail; | |
}; |