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 mux2to1(a,b,sel,out); | |
input a,b,sel; | |
output out; | |
tri out; | |
bufif1 (out,a,sel); | |
bufif0 (out,b,sel); | |
endmodule | |
module mux4to1(a,sel,out); | |
input [3:0] a; |
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
///////////////////////// OR GATES ///////////////////////// | |
module or4(out,in1,in2); | |
input [3:0] in1, in2; | |
output [3:0] out; | |
or t1(out[3], in1[3], in2[3]), | |
t2(out[2], in1[2], in2[2]), | |
t3(out[1], in1[1], in2[1]), | |
t4(out[0], in1[0], in2[0]); | |
endmodule |
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
///////////////////////// NOR GATES ///////////////////////// | |
module nor4(out,in1,in2); | |
input [3:0] in1, in2; | |
output [3:0] out; | |
nor t1(out[3], in1[3], in2[3]), | |
t2(out[2], in1[2], in2[2]), | |
t3(out[1], in1[1], in2[1]), | |
t4(out[0], in1[0], in2[0]); | |
endmodule |
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
///////////////////////// AND GATES ///////////////////////// | |
module and4(out,in1,in2); | |
input [3:0] in1, in2; | |
output [3:0] out; | |
and t1(out[3], in1[3], in2[3]), | |
t2(out[2], in1[2], in2[2]), | |
t3(out[1], in1[1], in2[1]), | |
t4(out[0], in1[0], in2[0]); | |
endmodule |
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 android.text.TextPaint; | |
import android.text.style.TypefaceSpan; | |
/** | |
* Created by Furkan Tektas on 15.02.2014. | |
*/ | |
public class ShadowedTypefaceSpan extends TypefaceSpan { | |
private float radius; | |
private float dx; | |
private float dy; |
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
#!/bin/sh | |
sudo nmap -sP 192.168.2.* | grep -B 2 -i raspberry |
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
#!/bin/sh | |
# starting raspberry camera stream at http://RASPBERRYIP:8090 | |
raspivid -o - -t 0 -hf -vf -w 640 -h 480 -fps 15 | cvlc stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264 |
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
#!/bin/sh | |
# Streaming Url: rtsp://RASPBERRYIP:8080/stream.sdp/ | |
raspivid -o - -t 0 -w 640 -h 480 -fps 25 -n | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8080/stream.sdp/}' :demux=h264 |
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
// Standard C++ Libraries | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
using std::cout; |
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 <hidef.h> /* common defines and macros */ | |
#include "derivative.h" /* derivative-specific definitions */ | |
#include <stdio.h> /* derivative-specific definitions */ | |
#include <stdlib.h> | |
#include "lcd.h" | |
#pragma CODE_SEG __NEAR_SEG NON_BANKED | |
// ASM | |
#define enable_intr() __asm(cli) |
OlderNewer