View iframe.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<iframe src="sub_frame.html" width="640" height="480"></iframe> | |
<iframe src="https://httpbin.org/html" width="640" height="480"></iframe> | |
</body> | |
</html> |
View electron_bug.webRequest.onBeforeSendHeaders.js
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
const {app, BrowserWindow} = require('electron') | |
app.once('ready', async () => { | |
win = new BrowserWindow() | |
win.webContents.session.webRequest.onBeforeSendHeaders((details, callback) => callback({})); | |
win.webContents.once('did-finish-load', async () => { | |
const html = await win.webContents.executeJavaScript('document.documentElement.innerHTML'); | |
console.log(html); | |
app.quit() | |
}) | |
await win.webContents.loadURL('https://httpbin.org/headers', {"extraHeaders":"Addition-Header: hello world"}) |
View index.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<span id="pos"></span> | |
<canvas id="myCanvas" width="1024" height="728"></canvas> |
View index.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
const search = (location.search.match(/q=([^&]+)/) || [null, "1"])[1]; | |
const iframe = document.createElement('iframe'); |
View bookmark.js
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
javascript:(function (){document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src='https://gistcdn.githack.com/binux/fb853cd4f4d699d178e66c699b58be68/raw/css_selector_helper.js';}()); |
View index.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<form action="https://book.jetblue.com/B6/webqtrip.html" method=POST> | |
<button type=submit>submit</submit> <br /> |
View pyproxy.sh
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
#!/bin/bash | |
python -c "$(wget -O - https://bootstrap.pypa.io/get-pip.py)" | |
python -m pip install pyproxy | |
python -c "from pyproxy import main;main();" $@ |
View core.decrypt.swf.py
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
#!/usr/bin/python | |
swf = open('core.swf').read() | |
KEY = 'dkrltl0%4*@jrky#@$' | |
def decrypt(p1, p2=1): | |
l3 = None | |
l5 = 0 | |
l6 = 0 | |
l7 = 0 |
View parse_dblp.py
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
#!/usr/bin/python | |
# filename: parse_dblp.py | |
# author: ivanchou | |
import codecs, os | |
import xml.etree.ElementTree as ET | |
paper_tag = ('article','inproceedings','proceedings','book', | |
'incollection','phdthesis','mastersthesis','www') | |
class AllEntities: |
View websocket.py
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
import threading | |
import tornado | |
import tornado.httpserver | |
import tornado.websocket | |
wss = [] | |
class WSHandler(tornado.websocket.WebSocketHandler): | |
def check_origin(self, origin): |
NewerOlder