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
| export OLD_PATH=$PATH | |
| . $HOME/.python_switchers.sh |
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
| select_macpython32() | |
| { | |
| echo "Setting environment for MacPython 3.2" | |
| PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin/:${OLD_PATH}" | |
| export PATH | |
| export PS1="(MacPython 3.2) \h:\W \u\$ " | |
| } |
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
| def hex_to_rgb(hex_string_color): | |
| """ | |
| Convert a color encoded in an hex string into | |
| an rgb tuple. | |
| Example: | |
| >> hex_to_rgb("5b6eff") | |
| (91, 110, 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
| # locale string from: http://msdn.microsoft.com/en-us/library/cdax410z(v=VS.80).aspx | |
| if sys.platform in [ 'win32']: | |
| locale.setlocale(locale.LC_ALL, 'fra') |
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
| for ($ContainerType$::iterator $Iter=it$ = $Container$.begin(); | |
| $Iter$!=$Container$.end(); | |
| ++$Iter$) | |
| { | |
| $end$ | |
| } |
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
| """Color output plugin for the nose testing framework. | |
| Use ``nosetests --with-color`` (no "u"!) to turn it on. | |
| http://en.wikipedia.org/wiki/Rudolph_the_Red-Nosed_Reindeer | |
| "Rudolph the Red-Nosed Reindeer" is a popular Christmas story about Santa | |
| Claus' ninth and lead reindeer who possesses an unusually red colored nose that | |
| gives off its own light that is powerful enough to illuminate the team's path | |
| through inclement weather. |
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
Show hidden characters
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
| "font_face": "Source Code Pro", | |
| "font_size": 11.0, | |
| "highlight_modified_tabs": true, | |
| "theme": "Soda Dark.sublime-theme", | |
| "trim_trailing_white_space_on_save": true, | |
| "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?", | |
| "tab_size": 4, | |
| "scroll_past_end": true, |
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
| def copytree(src, dst, symlinks=False, ignore=None): | |
| if not os.path.exists(dst): | |
| os.makedirs(dst) | |
| for item in os.listdir(src): | |
| s = os.path.join(src, item) | |
| d = os.path.join(dst, item) | |
| if os.path.isdir(s): | |
| copytree(s, d, symlinks, ignore) | |
| else: | |
| if not os.path.exists(d) or os.stat(src).st_mtime - os.stat(dst).st_mtime > 1: |
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
| # a test file:///Users/sevas/PycharmProjects/gulbis/doc/build/html/test_attributes.html file:///Users/sevas/PycharmProjects/gulbis/doc/build/html/test_attributes.html file:///Users/sevas/PycharmProjects/gulbis/doc/build/html/test_attributes.html | |
| [nosetests] | |
| verbosity=3 | |
| with-doctest=1 | |
| doctest-tests=1 |
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
| C/C++ COMPILER OPTIONS | |
| -OPTIMIZATION- | |
| /O1 minimize space /O2 maximize speed | |
| /Ob<n> inline expansion (default n=0) /Od disable optimizations (default) | |
| /Og enable global optimization /Oi[-] enable intrinsic functions | |
| /Os favor code space /Ot favor code speed | |
| /Ox maximum optimizations /Oy[-] enable frame pointer omission |