This file contains hidden or 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
| " ~/.vim/ftplugin/go/fixmake.vim | |
| set makeprg=go\ build\ % | |
| au BufWritePost *.go make |
This file contains hidden or 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 | |
| from grapefruit import Color | |
| from fabulous.xterm256 import rgb_to_xterm | |
| new_vim_color = [] | |
| def html2xterm256(color): | |
| r, g, b = Color.HtmlToRgb(html_color) | |
| r = int(r * 255) |
This file contains hidden or 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
| " | |
| " Fruity Color Scheme | |
| " =================== | |
| " | |
| " Author: Armin Ronacher <[email protected]> | |
| " Version: 0.2 | |
| " | |
| set background=dark | |
| hi clear |
This file contains hidden or 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
| $ gdb python | |
| GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013) | |
| Copyright 2004 Free Software Foundation, Inc. | |
| GDB is free software, covered by the GNU General Public License, and you are | |
| welcome to change it and/or distribute copies of it under certain conditions. | |
| Type "show copying" to see the conditions. | |
| There is absolutely no warranty for GDB. Type "show warranty" for details. | |
| This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done | |
| (gdb) r tests/hoedown_test.py |
This file contains hidden or 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
| [no cached generate_tokenize] | |
| $ make benchmark (git)-[master] | |
| ---> benchmark of autopep8.py test/example.py | |
| 1.34user 0.03system 0:01.42elapsed 96%CPU (0avgtext+0avgdata 9548maxresident)k | |
| 7240inputs+0outputs (24major+2916minor)pagefaults 0swaps | |
| ---> benchmark of test_unit | |
| ........................................................................................................................................................................................................................................................................................................................................... | |
| ---------------------------------------------------------------------- | |
| Ran 331 tests in 44.265s |
This file contains hidden or 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
| ## benchmarker: release 3.0.1 (for python) | |
| ## python platform: linux2 [GCC 4.8.2] | |
| ## python version: 2.7.6 | |
| ## python executable: /usr/bin/python | |
| ## user sys total real | |
| kaa.imlib2 0.8500 0.1300 0.9800 0.9883 | |
| PIL 8.6100 0.9400 9.5500 9.5611 | |
| PIL(fast) 1.0900 0.4500 1.5400 1.5460 | |
| pgmagick(blob-read) 0.2300 0.0200 0.2500 0.2500 |
This file contains hidden or 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
| - on Ubuntu 14.04 | |
| - apt-get install gtk-doc-tools swig gobject-introspection libgsf-1-dev ¥ | |
| libopenslide-dev libwebp-dev libcfitsio3-dev libmatio-dev libopenexr-dev ¥ | |
| libfftw3-dev libmagickcore-dev liborc-0.4-dev | |
| - ./configure && make |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| "image/jpeg" | |
| _ "image/png" | |
| "log" | |
| "os" |
This file contains hidden or 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
| ===== ===== | |
| (slow) 0.481754[sec] | |
| math.pow(13 * 0.3, 2) | |
| math.pow(2 * 1, 0.5) | |
| math.pow(0.2 * 0.2, 0.5) | |
| (fast) 0.026431[sec] | |
| (13 * 0.3) ** 2 | |
| (2 * 1) ** 0.5 |
This file contains hidden or 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 slowfast | |
| N = 5000000 | |
| setup = """\ | |
| t = 11 | |
| tt = [22, 11, 55] | |
| """ | |
| one = """\ | |
| if not (t in tt): |