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
[2017-01-19 14:47:43,002 DEBUG T:MainThread F:_debug] | Worker: Starting Pool | |
[2017-01-19 14:47:43,010 DEBUG T:MainThread F:start] ^-- substep ok | |
[2017-01-19 14:47:43,011 DEBUG T:MainThread F:_debug] | Worker: Starting Consumer | |
[2017-01-19 14:47:43,011 DEBUG T:MainThread F:_debug] | Consumer: Starting Connection | |
[2017-01-19 14:47:43,017 INFO T:MainThread F:start] Connected to pykafka://guest:guest@<ip>:2181//,pykafka://guest:guest@<ip>:2181//,pykafka://guest:guest@<ip>:2181// | |
[2017-01-19 14:47:43,017 DEBUG T:MainThread F:start] ^-- substep ok | |
[2017-01-19 14:47:43,017 DEBUG T:MainThread F:_debug] | Consumer: Starting Events | |
[2017-01-19 14:47:43,021 DEBUG T:MainThread F:start] ^-- substep ok | |
[2017-01-19 14:47:43,021 DEBUG T:MainThread F:_debug] | Consumer: Starting Tasks | |
[2017-01-19 14:47:43,027 DEBUG T:MainThread F:update] Updating cluster, attempt 1/3 |
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
""" | |
kombu.transport.kafka | |
===================== | |
Kafka transport. | |
:copyright: (c) 2010 - 2013 by Mahendra M. | |
:license: BSD, see LICENSE for more details. | |
**Synopsis** |
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
/*<?php | |
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
//\u000A\u002F\u002A | |
class PhpJava { | |
static function main() { | |
echo(//\u000A\u002A\u002F | |
"Hello World!"); | |
}} | |
//\u000A\u002F\u002A | |
PhpJava::main(); |
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
public int[] getPieChartColors(int numPieSlices, int baseColor, | |
boolean adjacentColors) { | |
// Inspiration http://stackoverflow.com/a/19389478 | |
int[] colors = new int[numPieSlices]; | |
colors[0] = baseColor; | |
float hsv[] = new float[3]; | |
Color.RGBToHSV(Color.red(baseColor), Color.green(baseColor), Color.blue(baseColor), | |
hsv); | |
double step = (240.0 / (double) numPieSlices); |
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 PIL | |
from os import listdir | |
from os.path import isfile, join | |
from PIL import Image | |
directory_path = "<some directory>" | |
onlyfiles = [ f for f in listdir(directory_path) if isfile(join(directory_path,f)) ] | |
basewidth = 64 |