Skip to content

Instantly share code, notes, and snippets.

View ResearcherOne's full-sized avatar
👨‍💻
Creating

Birkan Kolcu ResearcherOne

👨‍💻
Creating
View GitHub Profile
@ResearcherOne
ResearcherOne / tcpproxy.js
Created December 19, 2019 23:52 — forked from kfox/tcpproxy.js
A basic TCP proxy written in node.js
var net = require("net");
process.on("uncaughtException", function(error) {
console.error(error);
});
if (process.argv.length != 5) {
console.log("usage: %s <localport> <remotehost> <remoteport>", process.argv[1]);
process.exit();
}
[
{
"action": "talk",
"voiceName": "Russell",
"text": "This is see wah, Patient in room 227 needs immediate attention."
}
]
const readline = require('readline');
const roundTo = require('round-to');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
function printHelpMessage(){
console.log("<<--COMMANDS-->>");
Setup 1:
Server attached with Camera
Client with Web Browser
Setup 2:
Streamer (Computer attached with camera)
Web Server
Client with Browser
Setup1 vs Setup2:
Setup2 will have higher latency (compared to setup 1) on real-time video streaming
@ResearcherOne
ResearcherOne / LongestIncreasingSubsequenceDetector.java
Last active April 1, 2017 09:54
LongestIncreasingSubsequenceDetector v2
import java.util.Arrays;
public class LongestIncreasingSubsequenceDetector {
private int[] extractedLongestIncreasingSubsequence;
private int extractedLongestIncreasingSubsequenceLength;
private int extractedLongestIncreasingSubsequenceEndingIndex;
private int extractedLongestIncreasingSubsequenceStartingIndex;
private int[] optResults;
private int[] initialNumberSequence;
@ResearcherOne
ResearcherOne / LongestIncreasingSubsequenceDetector.java
Last active April 1, 2017 09:54
LongestIncreasingSubsequenceDetector v1
public class LongestIncreasingSubsequenceDetector {
private int[] extractedLongestIncreasingSubsequence;
private int extractedLongestIncreasingSubsequenceLength;
private int extractedLongestIncreasingSubsequenceEndingIndex;
private int extractedLongestIncreasingSubsequenceStartingIndex;
private int[] optResults;
private int[] initialNumberSequence;
LongestIncreasingSubsequenceDetector() {
@ResearcherOne
ResearcherOne / notificationListComponent.js
Last active January 1, 2017 21:43
notification list web component
/* notificationList Component
Author: Birkan Kolcu
License: MIT
Description: Simple HTML table component which can be manipulated from javascript. Written without any framework.,
Example Usage:
notificationListComponent.initialize("yes");
// Alternatively you can initialize it with styleOptions: notificationListComponent.initialize("yes", {"padding": "30px"});
notificationListComponent.appendToList("maId", "red", "title", "content");
notificationListComponent.removeFromList("maId");
@ResearcherOne
ResearcherOne / yay-test.js
Created December 26, 2016 16:17
my first gist
console.log("Hello gist!");