Skip to content

Instantly share code, notes, and snippets.

View loderunner's full-sized avatar
👨‍💻
𝚌𝚘𝚍𝚎 𝚕𝚒𝚏𝚎

Charles Francoise loderunner

👨‍💻
𝚌𝚘𝚍𝚎 𝚕𝚒𝚏𝚎
View GitHub Profile
from numpy.polynomial.polynomial import polyval
from scipy.optimize import newton
from random import random
def poly(coeffs):
def polyfunc(x):
return polyval(x, coeffs)
return polyfunc
# Polynomial: coeffs[0]*x^0 + coeffs[1]*x^1 + coeffs[2]*x^2 + ...
setInterval(function(){ var d = $('#thebutton-s-10s'); if (d.text() == '0') { var e = $('#thebutton-s-1s'); if (e.text() == '0') { $('.thebutton').click(); } } }, 100);
from mutagen.easyid3 import EasyID3 as Tag
from os import listdir
from re import sub
for f in listdir('.'):
if (f[-4:] == '.mp3'):
try:
tag = Tag(f)
except:
tag = Tag()
import gevent
import gevent.queue
import gevent.lock
from functools import partial
class JobQueue:
class Job:
def __init__(self, run=None, *args, **kwargs):
self.callback = kwargs.pop('dispatch_callback', None)
  • Pizza
  • Sushis/makis
  • Ramens
  • Pates vivantes
  • kebab
  • burger
  • Ometis
  • pâtes
  • sandwich
  • Bagel
com.apple.WebKit(2176) deny file-read-data /Applications/Safari.app
Process: com.apple.WebKit [2176]
Path: /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.Networking.xpc/Contents/MacOS/com.apple.WebKit.Networking
Load Address: 0x10b632000
Identifier: com.apple.WebKit.Networking
Version: 11601.5.17.1 (11601)
Build Info: 1-WebKit2~7601005017001000
Code Type: x86_64 (Native)
Parent Process: launchd [1]
import random
import string
import os
import os.path
import binascii
MAX_DEPTH=6
MIN_DIRS=1
MAX_DIRS=5
MIN_FILES=1
@interface NotRedundant
@property (nonatomic, strong) NSString* title;
@end
@implementation Redundant
@end
Foo::Foo()
: _impl(Foo::createImplementation())
{
}
void Foo::platform_independent() {
// do some stuff that is the same on all platforms
}
void Foo::platform_specific() {