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 led8( select, d ); | |
input[2:0] select; | |
output[7:0] d; | |
wire[2:0] select; | |
reg[7:0] d; | |
always @( select or d ) | |
begin |
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 mux4( d, s, y ); | |
input [3:0]d; | |
input [1:0]s; | |
output y; | |
wire [3:0]d; | |
wire [1:0]s; | |
wire y; | |
assign y= (s == 2'b00)? d[0]: (s == 2'b01)? d[1]: (s == 2'b10)? d[2] : d[3]; |
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 xbox( a, o ); | |
input [1:0]a; | |
output [3:0]o; | |
assign o = 4'b0001 << a ; | |
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
http://stackoverflow.com/questions/2060953/httpwebresponse-with-mjpeg-and-multipart-x-mixed-replace-boundary-myboundary | |
var BOUNDARY = '----' + Math.random().toString(16).substring(2); | |
header("Cache-Control: no-cache"); | |
header("Cache-Control: private"); | |
header("Pragma: no-cache"); | |
header("Content-type: multipart/x-mixed-replace; boundary=$boundary"); | |
============================ | |
HTTP/1.1 200 OK | |
Content-Type: multipart/x-mixed-replace; boundary=--myboundary |
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
var fs = require('fs'); | |
var http = require('http'); | |
var https = require('https'); | |
var httpProxy = require('http-proxy'); | |
http.globalAgent.maxSockets = 10000; | |
https.globalAgent.maxSockets = 10000; | |
var options = { | |
https: { |
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
cs8425@localhost:~$ 7z b | |
7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 | |
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs) | |
RAM size: 3907 MB, # CPU hardware threads: 4 | |
RAM usage: 850 MB, # Benchmark threads: 4 | |
Dict Compressing | Decompressing | |
Speed Usage R/U Rating | Speed Usage R/U Rating |
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
/* | |
"name": "express", | |
"version": "4.12.3", | |
"name": "socket.io", | |
"version": "1.3.5", | |
*/ | |
var express = require('express'); | |
var http = require('http'); | |
var app = express(); |
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
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 | |
p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,4 CPUs) | |
RAM size: 2023 MB, # CPU hardware threads: 4 | |
RAM usage: 850 MB, # Benchmark threads: 4 | |
Dict Compressing | Decompressing | |
Speed Usage R/U Rating | Speed Usage R/U Rating | |
KB/s % MIPS MIPS | KB/s % MIPS MIPS |
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
# wrok like: | |
# | |
# raw tcp(9999) tls(127.0.0.1:25500) raw tcp(25501) | |
# client =============> tcp2tls_client.go =====================> tls2tcp_server.go ==============> real server | |
#Generated private key | |
openssl genrsa -out server.key 2048 | |
#To generate a certificate |
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
// build: | |
// GOOS=windows GOARCH=386 go build -o keyemu.exe keyemu.go | |
// GOOS=windows GOARCH=amd64 go build -o keyemu-x64.exe keyemu.go | |
// pre-build: https://mega.nz/#F!c9M0VaqK!sjUh5jwAU1tYkVv8z9YqaQ | |
// ref: https://github.com/micmonay/keybd_event | |
package main |
OlderNewer