Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
function ProcessingAnimation($scriptBlock) { | |
$cursorTop = [Console]::CursorTop | |
try { | |
[Console]::CursorVisible = $false | |
$counter = 0 | |
$frames = '|', '/', '-', '\' | |
$jobName = Start-Job -ScriptBlock $scriptBlock | |
#!/usr/bin/env python | |
# | |
# Simple script showing how to read a mitmproxy dump file | |
# | |
### UPD: this feature is now avaiable in mitmproxy: https://github.com/mitmproxy/mitmproxy/pull/619 | |
from libmproxy import flow | |
import json, sys |
adapted from the article "Crawling anonymously with Tor in Python" by S. Acharya, Nov 2, 2013.
The most common use-case is to be able to hide one's identity using TOR or being able to change identities programmatically, for example when you are crawling a website like Google and you don’t want to be rate-limited or blocked via IP address.
Install Tor.
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
# -- coding: utf-8 -- | |
from win32api import * | |
from win32gui import * | |
import win32con | |
import sys, os | |
import struct | |
import time | |
class WindowsBalloonTip: |