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
package main | |
import ( | |
"compress/gzip" | |
"io" | |
"log" | |
"os" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" |
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 <iostream> | |
#include <windows.h> | |
#include <psapi.h> | |
using namespace std; | |
int main() | |
{ | |
DWORD pProcessIds[500]; |
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
int main() | |
{ | |
SOCKET sock; | |
sockaddr_in target; | |
unsigned long addr; | |
WSADATA wsaData; | |
WSAStartup(MAKEWORD(2,0),&wsaData); | |
target.sin_family = AF_INET; | |
target.sin_port = htons(80); |
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
/////// START - DO NOT EDIT | |
var {classes: Cc, interfaces: Ci, results: Cr, Constructor: CC, utils: Cu} = Components; | |
Cu.import('resource://gre/modules/Services.jsm'); | |
var BinaryInputStream = CC('@mozilla.org/binaryinputstream;1', 'nsIBinaryInputStream', 'setInputStream'); | |
var BinaryOutputStream = CC('@mozilla.org/binaryoutputstream;1', 'nsIBinaryOutputStream', 'setOutputStream'); | |
var StorageStream = CC('@mozilla.org/storagestream;1', 'nsIStorageStream', 'init'); | |
function TracingListener() { | |
this.receivedChunks = []; // array for incoming data. holds chunks as they come, onStopRequest we join these junks to get the full source |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"mime/multipart" | |
"net/http" | |
) |
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 webserver = require('webserver'); | |
var webPage = require('webpage'); | |
var server = webserver.create(); | |
var service = server.listen(8080, function(request, response) { | |
response.statusCode = 200; | |
var page = webPage.create(); | |
var q = queriesFromUrl(request.url) | |
if(q.url==null) | |
response.close(); |
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
package main | |
import ( | |
"fmt" | |
"github.com/HouzuoGuo/tiedot/db" | |
"github.com/gin-gonic/gin" | |
) | |
func main() { |
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
/// <reference path="node.d.ts" /> | |
/// <reference path="express.d.ts" /> | |
// install | |
// npm install express --save | |
// npm install body-parser | |
import express = require('express'); | |
var bodyParser = require('body-parser'); | |
var app = express(); |
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> | |
<body> | |
<script> | |
"use strict"; | |
function calc(arr) { | |
var m = arr.split(' '); | |
return calcArr(m); | |
} |
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
package main | |
import ( | |
"bytes" | |
"compress/gzip" | |
"crypto/tls" | |
"crypto/x509" | |
"encoding/pem" | |
"io/ioutil" | |
"log" |