Skip to content

Instantly share code, notes, and snippets.

View h-j-13's full-sized avatar
🎯
Focusing

HouJie h-j-13

🎯
Focusing
  • Zibo Shandong, China
View GitHub Profile
import qrcode
from qrcode.util import *
def hack_put(self, num, length):
if num == 0:
num = 233 # make a fake length
for i in range(length):
self.put_bit(((num >> (length - i - 1)) & 1) == 1)
qrcode.util.BitBuffer.put = hack_put
@yasinkuyu
yasinkuyu / desiredcapabilities.py
Created September 8, 2017 14:07
Python Selenium Luminati Proxy Desired Capabilities (Exclude localhost)
#@yasinkuyu 08/09/2017
# install luminati (https://luminati.io) proxy manager & run
from selenium import webdriver
from selenium.webdriver.common.proxy import Proxy, ProxyType
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.proxy import *
PROXY = '127.0.0.1:24000'
@PurpleBooth
PurpleBooth / README-Template.md
Last active January 9, 2026 07:12
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@lijoantony
lijoantony / 1.cpp
Created November 17, 2012 17:50
Example program to demonstrate the usage of curl multi interface with boost::asio
boost::asio::io_service io_service;
boost::asio::deadline_timer timer(io_service);