Skip to content

Instantly share code, notes, and snippets.

View tomer's full-sized avatar

Tomer Cohen tomer

View GitHub Profile
@dendisuhubdy
dendisuhubdy / mass_unfollow_twitter.py
Created October 2, 2021 11:20
mass_unfollow_twitter.py
#! /usr/bin/python3
import tweepy
import time
def limit_handled(cursor):
while True:
try:
yield next(cursor)
except tweepy.errors.TooManyRequests as e:
@gaearon
gaearon / modern_js.md
Last active June 11, 2024 07:33
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@steven2358
steven2358 / ffmpeg.md
Last active July 13, 2024 20:20
FFmpeg cheat sheet
@ilyanep
ilyanep / clown.py
Created October 20, 2017 17:26
C++-style stream syntax in Python!
import sys
# Inspired by a friend who hadn't had her coffee yet and thought
# she was writing C++ when she was in a Python file.
class ostream:
def __init__(self, target):
self.target = target
def __lshift__(self, other):
self.target.write(other)
return self
@pylover
pylover / a2dp.py
Last active May 27, 2024 21:51
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3
"""Fixing bluetooth stereo headphone/headset problem in debian distros.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
Licence: Freeware