- Pizza
- Sushis/makis
- Ramens
- Pates vivantes
- kebab
- burger
- Ometis
- pâtes
- sandwich
- Bagel
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
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 + ... |
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
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() |
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 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) |
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
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] |
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 random | |
import string | |
import os | |
import os.path | |
import binascii | |
MAX_DEPTH=6 | |
MIN_DIRS=1 | |
MAX_DIRS=5 | |
MIN_FILES=1 |
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
@interface NotRedundant | |
@property (nonatomic, strong) NSString* title; | |
@end | |
@implementation Redundant | |
@end |
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
Foo::Foo() | |
: _impl(Foo::createImplementation()) | |
{ | |
} | |
void Foo::platform_independent() { | |
// do some stuff that is the same on all platforms | |
} | |
void Foo::platform_specific() { |