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
<?php | |
// get the raw HTTP post data | |
$postdata = file_get_contents('php://input'); | |
// the post data is JSON, so let's decode it and grab the various fields | |
$json = json_decode($postdata); | |
$subject = $json->Subject; | |
$message = $json->Message; | |
$signature = $json->Signature; |
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
<html> | |
<head> | |
<script src="jquery.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="container"> | |
</div> | |
<script type="text/javascript"> | |
$('#container').load('hello.txt'); | |
</script> |
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 <cstdio> | |
template <std::size_t N> | |
void printArray(const int (&arr)[N]) { | |
for (int i = 0; i < N-1; i++) { | |
printf("%d, ", arr[i]); | |
} | |
printf("%d\n", arr[N-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 <assert.h> | |
#include <sys/stat.h> | |
#include <stdint.h> | |
#include <libgen.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char * argv[]) { |
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
<?php | |
/* | |
* simple Mime/Multipart email class for sending attachments and a text or html body in the charset of your choosing | |
* 2011 tom slankard, earthmine inc | |
*/ | |
class Mime { | |
private $boundary = null; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <arpa/inet.h> | |
#include <netdb.h> | |
int main(int argc, char * argv[]) { | |
struct addrinfo * _addrinfo; | |
struct addrinfo * _res; |
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
/** | |
* to build: gcc -o mousekiller mousekiller.c -framework CoreFoundation -framework IOKit | |
*/ | |
#include <stdio.h> | |
#include <IOKit/hidsystem/IOHIDLib.h> | |
#include <IOKit/hidsystem/IOHIDParameter.h> | |
int main(int argc, char **argv) | |
{ |
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
// create a list of flags | |
std::vector<bool> flags; | |
for(int i = 0; i < 10; i++) | |
flags.push_back(false); | |
// set some flags | |
flags[1] = true; | |
flags[3] = true; | |
flags[4] = true; | |
flags[8] = true; |
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 events = require('events'); | |
var util = require('util'); | |
function Decider(_domain, task_list) { | |
var aws = require('aws-sdk'); |
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
{ events: | |
[ { eventId: 1, | |
eventTimestamp: 1363887002.226, | |
eventType: 'WorkflowExecutionStarted', | |
workflowExecutionStartedEventAttributes: [Object] }, | |
{ decisionTaskScheduledEventAttributes: [Object], | |
eventId: 2, | |
eventTimestamp: 1363887002.226, | |
eventType: 'DecisionTaskScheduled' }, | |
{ decisionTaskStartedEventAttributes: [Object], |
OlderNewer