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
################## Plot training skies ################### | |
## | |
## [email protected] | |
## | |
########################################################## | |
## calculate a vector given | |
## x,y,e1,e2 | |
gal_line<-function(g,scale=100) | |
{ |
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
/* Assign the library named SAMPLE to the ODBC data source * | |
* the library sample will contain the tables of the database */ | |
LIBNAME SAMPLE ODBC DATASRC=mysqlData; | |
/* Use SQL query to create a dataset in Work.Sample * | |
* using sample1 table from the SAMPLE library which is defined as * | |
* the ODBC datasource */ | |
PROC SQL outobs=10; *Limit output to 10 only; |
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
/* Assign the library named MSSQL to the ODBC data source * | |
* the library sample will contain the tables of the database */ | |
LIBNAME MSSQL ODBC DATASRC=MSSQL UID=XX PASSWORD='{sas002}XXXXXXXXXXXX'; | |
LIBNAME MSSQL ODBC NOPROMPT="UID=XX;PWD=XXXXXX;DSN=MSSQL;SERVER=XXX.XX.XX.XX;DATABASE=XXXXX;"; | |
/* Use a 32 bit key to encode 'yourpassword' */ | |
PROC PWENCODE IN='yourpassword' METHOD=SAS002; | |
run; |
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
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cal="http://calculator.me.org/"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<cal:add> | |
<i>3</i> | |
<j>2</j> | |
</cal:add> | |
</soapenv:Body> | |
</soapenv:Envelope> |
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
filename resp_xml 'response.xml'; | |
filename rqst_xml 'request.xml'; | |
proc soap in=rqst_xml out=resp_xml | |
url="http://localhost:8084/CalculatorWSApplication/CalculatorWSApplication" soapaction="Query"; | |
run; | |
/******************************************************************************** | |
* Generated by XML Mapper, 903000.0.0.20110518190000_v930 | |
********************************************************************************/ |
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
/* Original code from SAS Documents*/ | |
data test; | |
infile datalines missover; | |
input String1 $char8. +1 String2 $char8. +1 Operation $40.; | |
GED=compged(string1, string2); | |
datalines; | |
baboon baboon match | |
baXboon baboon insert | |
baoon baboon delete | |
baXoon baboon replace |
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://benjithian.sg/2012/12/load-image-from-memoryweb-using-opencv-and-libcurl/ | |
I just started playing around with OpenCV and wanted it to display images directly from memory loaded from a website URL. | |
Below is the C++ codes to load an image directly from a website without it being written to the hard disk. | |
Library used were OpenCV and Libcurl. Do tell me if there is a more efficient way to do it. | |
*/ | |
#include <stdio.h> | |
#include <curl/curl.h> | |
#include <sstream> | |
#include <iostream> |
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://benjithian.sg/2012/12/stream-jpeg-frames-from-andriod-camera-via-http/ | |
I used IP Webcam Andriod App to make my tablet as a webcam but was unable to use the VideoCapture class yet. | |
So here is just a quick way of streaming it through JPEG Frames, it is similar the my previous post on loading | |
an image from a website. Make sure the wait time must be greater than your camera frame rate. | |
*/ | |
#include <stdio.h> | |
#include <curl/curl.h> | |
#include <sstream> | |
#include <iostream> |
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
/* A Simple Java class just to write a google chart html when called by BASE SAS*/ | |
import java.io.*; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map; | |
public class Chart { | |
HashMap<String,Integer> map = new HashMap<String,Integer>(); | |
public Chart() |
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
/* Use SAS to call Java Object * | |
* http://benjithian.sg/2012/12/sas-with-java/ */ | |
/* Sample Data from Google Chart API*/ | |
data Work.test; | |
infile datalines missover; | |
input Topping $ Slices $; | |
datalines; | |
Mushroom 3 | |
Onions 1 |
OlderNewer