This file contains hidden or 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 hidden or 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 hidden or 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" |
This file contains hidden or 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
<?xml version="1.0"?> | |
<bindings xmlns="http://www.mozilla.org/xbl" | |
xmlns:html="http://www.w3.org/1999/xhtml"> | |
<binding id="xss"> | |
<implementation> | |
<constructor> | |
alert("xss"); | |
</constructor> | |
</implementation> | |
</binding> |
This file contains hidden or 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
import Data.ByteString.Lazy.Char8 as BS | |
import Data.Word | |
import Data.Bits | |
import Data.List | |
import Data.Char | |
import Data.List.Split | |
isChar x = o > 31 && o < 127 where o = ord x | |
scan::[Char]->[Char]->[Char] |
This file contains hidden or 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
import Network.HTTP | |
import Text.HTML.TagSoup | |
openURL x = getResponseBody =<< simpleHTTP (getRequest x) | |
extractLinks ((TagOpen "a" as):xs) = as:extractLinks(xs) | |
extractLinks (x:xs) = extractLinks(xs) | |
extractLinks _ = [] | |
extractHref (("href",k):xs) = k:extractHref(xs) |
This file contains hidden or 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
<script src="bignumber.js"></script> | |
<canvas id='c' width="200" height="200"> | |
</canvas> | |
<script> | |
function prime_factors(n){ | |
var factors = []; | |
var d = 2; |
This file contains hidden or 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" | |
"flag" | |
"bufio" | |
"os" | |
"compress/gzip" | |
"strconv" | |
"io" |
This file contains hidden or 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" | |
"flag" | |
"bufio" | |
"os" | |
"errors" | |
) |
This file contains hidden or 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 ( | |
"bufio" | |
"flag" | |
"fmt" | |
"image/png" | |
"io" | |
"os" | |
"strconv" |