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
# apt-get install | |
sudo apt-get update | |
# For ubuntu 14.04 | |
sudo apt-get install -y xserver-xorg-video-dummy-lts-trusty | |
# For ubuntu 16.04 | |
sudo apt-get install -y xserver-xorg-video-dummy-lts-willy | |
# Copy the xorg.conf to `/etc/X11/xorg.conf`. | |
wget -P /etc/X11 https://gist.githubusercontent.com/mangoliou/ba126832f2fb8f86cc5b956355346038/raw/b6ad063711226fdd6413189ad905943750d64fd8/xorg.conf |
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
/* | |
This file contains codes mostly developed by Dr.Ken Christensen. Email: christen@csee.usf.edu | |
http://www.csee.usf.edu/~christen/tools/toolpage.html | |
class : Computer Networks | |
*/ | |
/* Code is readable and therefore comments are added when absolutely needed */ | |
/* Header Files for time, sockets, IO and String */ |
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 needed headers here*/ | |
using namespace std; | |
typedef map<char, int> pmap; | |
typedef map<int, char> vmap; | |
void main() | |
{ | |
int T; //test cases | |
//freopen("C:\\input.txt","r",stdin); | |
//freopen("C:\\ouput.out","w",stdout); | |
cin >> T; |
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 needed headers here */ | |
using namespace std; | |
typedef map<char, bool> pmap; | |
void main() | |
{ | |
int T; | |
//freopen("C:\\input1.txt","r",stdin); | |
//freopen("C:\\outp.txt","w",stdout); | |
cin >> T; | |
for (int kk = 0; kk < T; kk++) { |
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
/*-------------------------Grey Scaling-----------------------**/ | |
void utility::addGrey(image& src, image& tgt, ROI roi, int value1, int value2) | |
{ | |
tgt.resize(src.getNumberOfRows(), src.getNumberOfColumns()); | |
for (int i = 0; i < src.getNumberOfRows(); i++) | |
for (int j = 0; j < src.getNumberOfColumns(); j++) | |
{ | |
int value = roi.InROI(i, j); |
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
//-----------------------------Gray level histogram computation ------------------------------------ | |
void utility::ComputeHistogramGrey(image& src, image& tgt, ROI roi) | |
{ | |
int histogram_1[256] = { 0 }; | |
int histogram_2[256] = { 0 }; | |
for (int i = 0; i < src.getNumberOfRows(); i++) | |
for (int j = 0; j < src.getNumberOfColumns(); j++) { | |
int value = roi.InROI(i, j); | |
if (value != -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
#include "utility.h" | |
#include "math.h" | |
std::string utility::intToString(int number) | |
{ | |
std::stringstream ss; //create a stringstream | |
ss << number; //add number to the stream | |
return ss.str(); //return a string with the contents of the stream | |
} | |
/* ---------Compute edges and find circles using hough transform----------------*/ |
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
// C++/CSIM Model of EEE - Energy Efficient Ethernet | |
//This program is a modification of M/M/1 queue example bundled with CSIM software | |
//Compiled and run using the default compiler available with MS visual studio 2010 | |
//TRACE files used were those provided at the project-3 link in Dr. Ken Christensen's web page | |
// class definitions | |
#include "cpp.h" | |
#include <stdio.h> | |
#include <string.h> |
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/bash | |
set -ex | |
# Originally from https://gist.github.com/jedi4ever/b1f8b27d4a803d487fa4 | |
# This scripts allows you to upload a binary to the iTunes Connect Store and do it for a specific app_id | |
# Because when you have multiple apps in status for download, xcodebuild upload will complain that multiple apps are in wait status | |
# Requires application loader to be installed | |
# See https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html |
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
Dim Name, Password as String | |
Dim Command as OracleCommand | |
Dim Reader as OracleDataReader | |
Name = Me.TextBox_username.Text | |
Command.CommandText = “Select password FROM usernames_table WHERE username = ’” & Name &”’” | |
Reader = Command.ExecuteReader | |
Reader.Read () | |
Password = Reader (“password”).ToString |
NewerOlder