Skip to content

Instantly share code, notes, and snippets.

View lgfa29's full-sized avatar

Luiz Aoqui lgfa29

View GitHub Profile
SoapObject req = new SoapObject(NAMESPACE, METHOD_NAME);
req.addProperty("email", ...);
SoapSerializationEnvelope env = new SoapSerializationEnvelope(SoapEnvelope.VER11);
env.setOutputSoapObject(req);
HttpTransportSE ht = new HttpTransportSE(URL);
ht.debug = true;
ht.call(SOAP_ACTION, env);
...
@lgfa29
lgfa29 / ex2.r
Created October 7, 2012 21:44
R da Babi
complete <- function(directory, id)
{
nobs <- vector()
for(valor in id)
{
monitor <- getmonitor(valor, directory) ##função anterior##
nobsdata <-sum(complete.cases(monitor)) ##informação do número de casos##
nobs <- c(nobs, nobsdata)
}
##função pra retornar os casos e os ids como dataframe##
} else {
int myByte;
if (nbrBitsFilled == 0)
myByte = 0;
else
myByte = Integer.parseInt(myString.substring(nrBytesFilled*2, nrBytesFilled*2 + 2), 16);
String myByteString = Integer.toBinaryString(myByte);
myByteString = repeatString("0", nbrBitsFilled-myByteString.length()) + myByteString;
myByteString = reverseString(myByteString);
@lgfa29
lgfa29 / saida
Created November 25, 2012 15:39
pcs2056_fase5
> r 000
Exibir valores dos registradores a cada passo do ciclo FDE (s/n)[s]:
Executar MVN passo a passo (s/n)[n]: s
MAR MDR IC IR OP OI AC
---- ---- ---- ---- ---- ---- ----
0000 0008 0008 0008 0000 0008 0000 Continua (s/n)[s]:
0008 3001 000A 3001 0003 0001 0001 Continua (s/n)[s]:
000A 9002 000C 9002 0009 0002 0001 Continua (s/n)[s]:
000C 3002 000E 3002 0003 0002 0002 Continua (s/n)[s]:
000E 9004 0010 9004 0009 0004 0002 Continua (s/n)[s]:
<html>
<head>
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>
<title>Teste</title>
</head>
<body>
<video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="264" poster="my_video_poster.png" data-setup="{}">
#define KEY_LENGTH 2048
static const UInt8 publicKeyIdentifier[] = "com.apple.sample.publickey\0";
static const UInt8 privateKeyIdentifier[] = "com.apple.sample.privatekey\0";
NSData * publicTag;
NSData * privateTag;
+ (void)generateKeyPairPlease {
OSStatus status = noErr;
@lgfa29
lgfa29 / 0_reuse_code.js
Created December 13, 2013 23:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
$ cf push
Using manifest file /Users/Zinho/Projects/ibm/kiwi/cant-get-up/manifest.yml
Updating app luiz-test in org laoqui@ca.ibm.com / space dev as laoqui@ca.ibm.com...
OK
Uploading luiz-test...
Uploading from: /Users/Zinho/Projects/ibm/kiwi/cant-get-up
13K, 10 files
OK
2014-04-01T22:03:42.24-0400 [API] OUT Updated app with guid d038b112-2126-4e3a-a2e7-fdcec0258f0d
2014-04-01T22:03:55.68-0400 [API] OUT Updated app with guid d038b112-2126-4e3a-a2e7-fdcec0258f0d
2014-04-01T22:03:57.64-0400 [DEA] OUT Got staging request for app with id d038b112-2126-4e3a-a2e7-fdcec0258f0d
2014-04-01T22:03:59.08-0400 [STG] OUT -----> Downloaded app package (8.0K)
2014-04-01T22:03:59.30-0400 [STG] OUT -----> Downloaded app buildpack cache (4.0K)
2014-04-01T22:03:59.49-0400 [API] OUT Updated app with guid d038b112-2126-4e3a-a2e7-fdcec0258f0d
2014-04-01T22:04:41.04-0400 [STG] OUT WARNING: No version of Node.js specified in package.json, see:
2014-04-01T22:04:41.04-0400 [STG] OUT https://devcenter.heroku.com/articles/nodejs-versions
2014-04-01T22:04:41.04-0400 [STG] OUT Using Node.js version: 0.10.21
2014-04-01T22:04:41.04-0400 [STG] OUT Using npm version: 1.2.30
0 - Additional Products
707 - 600 GB iSCSI SAN Snapshot Space
4426 - Citrix NetScaler VPX 10.1 200Mbps Platinum
4513 - Dedicated Load Balancer with High Availability and SSL - 150,000 Connections
4612 - 6500 GB iSCSI SAN Replication
4184 - 750GB EVault Disk to Disk Enterprise Backup
4427 - Citrix NetScaler VPX 10.1 200Mbps Standard
902 - CDN Pay as You Go Storage
4028 - .com - 9 year
703 - 350 GB iSCSI SAN Snapshot Space