Suppose you're opening an issue and there's a lot noisey logs that may be useful.
Rather than wrecking readability, wrap it in a <details> tag!
<details>
Summary Goes Here| import time | |
| import random | |
| from multiprocessing import Process, Queue, JoinableQueue, cpu_count | |
| """ Adjust time.sleep() values to see action of consumer """ | |
| def work(id, jobs, result): | |
| while True: | |
| task = jobs.get() | |
| if task is None: |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |
| # -*- coding: utf-8 -*- | |
| ########################################################################## | |
| # YouCompleteMe configuration for ROS # | |
| # Author: Gaël Ecorchard (2015) # | |
| # # | |
| # The file requires the definition of the $ROS_WORKSPACE variable in # | |
| # your shell. # | |
| # Name this file .ycm_extra_conf.py and place it in $ROS_WORKSPACE to # | |
| # use it. # |
| #install new versions of gcc and g++ | |
| sudo apt-get install gcc-4.8 g++-4.8 | |
| #remove existing alternatives | |
| sudo update-alternatives --remove-all gcc | |
| sudo update-alternatives --remove-all g++ | |
| #add new and old version to update-alternatives db | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 |
| {0: 'tench, Tinca tinca', | |
| 1: 'goldfish, Carassius auratus', | |
| 2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
| 3: 'tiger shark, Galeocerdo cuvieri', | |
| 4: 'hammerhead, hammerhead shark', | |
| 5: 'electric ray, crampfish, numbfish, torpedo', | |
| 6: 'stingray', | |
| 7: 'cock', | |
| 8: 'hen', | |
| 9: 'ostrich, Struthio camelus', |
| """Simple example on how to log scalars and images to tensorboard without tensor ops. | |
| License: BSD License 2.0 | |
| """ | |
| __author__ = "Michael Gygli" | |
| import tensorflow as tf | |
| from StringIO import StringIO | |
| import matplotlib.pyplot as plt | |
| import numpy as np |