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 sys | |
import argparse | |
import logging | |
log = logging.getLogger('eventsource.client') | |
from tornado.ioloop import IOLoop | |
from tornado.httpclient import AsyncHTTPClient, HTTPRequest | |
class Event(object): | |
def __init__(self): |
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 14916bac1a4bd4aa7382f84269852b626f09f98f Mon Sep 17 00:00:00 2001 | |
From: Guyzmo <guyzmo....net> | |
Date: Fri, 7 Sep 2012 15:00:13 +0200 | |
Subject: [PATCH] added quotes to multiline strings | |
--- | |
z.sh | 70 ++++++++++++++++++++++++++++++++--------------------------------- | |
1 files changed, 34 insertions(+), 36 deletions(-) | |
diff --git a/z.sh b/z.sh |
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
diff --git a/platform/io.c b/platform/io.c | |
index 209666a..0a6c2cf 100644 | |
--- a/platform/io.c | |
+++ b/platform/io.c | |
@@ -24,6 +24,16 @@ | |
#if defined(__FreeBSD__) | |
#define IO_BSD | |
#elif defined(__APPLE__) | |
+size_t strnlen(const char *s, size_t maxlen) | |
+{ |
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
diff --git a/libstreamanalyzer/include/strigi/analysisresult.h b/libstreamanalyzer/include/strigi/analysisresult.h | |
index 074fc43..0d7b37c 100644 | |
--- a/libstreamanalyzer/include/strigi/analysisresult.h | |
+++ b/libstreamanalyzer/include/strigi/analysisresult.h | |
@@ -20,6 +20,8 @@ | |
#ifndef STRIGI_ANALYSISRESULT_H | |
#define STRIGI_ANALYSISRESULT_H | |
+#include "/usr/include/time.h" | |
+ |
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
#!/usr/bin/env python | |
import sys | |
import urllib | |
import requests | |
from BeautifulSoup import BeautifulSoup | |
def get_google_auth_session(username, password): | |
session = requests.Session() | |
google_accounts_url = 'http://accounts.google.com' |
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
// by @guyzmo under WTFPL license | |
// http://i.got.nothing.to/hack/on/run-the-sl030-rfid-reader-on-linux/ | |
#include <errno.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <linux/i2c-dev.h> | |
#include <sys/ioctl.h> |
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
"""\ | |
Pluzz Downloader | |
Downloads a movie from the French Television VOD | |
Usage: | |
pluzz_downloader.py [<url>] [--gui] [-t <target>] [--avconv <avconv>] | |
Options: | |
-g --gui Launch graphical user interface |
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
#!/usr/bin/env python | |
from base64 import b64decode | |
from flask import Flask, current_app | |
from flask_sqlalchemy import SQLAlchemy | |
from flask_presst import PresstApi, ModelResource | |
from flask_presst.principal import PrincipalResource | |
from flask.ext.principal import UserNeed, RoleNeed |
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
cask :v1 => 'mplabx' do | |
version '2.30' | |
sha256 '551788c3f428590da3ee405ad3e6756a57ecb1c3dd4effe76fafebc10c4e1892' | |
depends => :java16 | |
url 'http://www.microchip.com/mplabx-ide-osx-installer' | |
name 'Microchip MPLabX' | |
homepage 'http://www.microchip.com/pagehandler/en-us/family/mplabx/home.html' | |
license :commercial |
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
#!/usr/bin/env python3 | |
import unicodedata | |
test_strings = [ | |
"בְּרֵאשִׁית, בָּרָא אֱלֹהִים, אֵת הַשָּׁמַיִם, וְאֵת הָאָרֶץ", | |
"bête", | |
] | |
class unicomb(str): |
OlderNewer