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 yield_or_eval &block | |
| return unless block | |
| if block.arity > 0 | |
| yield self | |
| else | |
| self.instance_eval(&block) | |
| end | |
| 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
| #!/bin/bash -ex | |
| # Paste this into ssh | |
| # curl -sL https://gist.github.com/ngaloppo/6216772/raw | /bin/bash -ex | |
| # When forking, you can get the URL from the download button. | |
| pushd $HOME | |
| ### Install tools ### | |
| packages='curl git vim tmux' |
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
| class opencv { | |
| Exec { path => "/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin", } | |
| $version = "2.4.6.1" | |
| $libopencv_core_filename = "libopencv_core.so.2.4.6" | |
| case $operatingsystem { | |
| # Install OpenCV from source. This is an instructive example | |
| # and may come in handy if we need to move to a version of |
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
| HOMEBREW_VERSION: 0.9.4 | |
| ORIGIN: https://github.com/mxcl/homebrew.git | |
| HEAD: 4c2cee38dfe682c7375facc5bcf0e28c467e47df | |
| HOMEBREW_PREFIX: /usr/local | |
| HOMEBREW_CELLAR: /usr/local/Cellar | |
| CPU: quad-core 64-bit ivybridge | |
| OS X: 10.8.4-x86_64 | |
| Xcode: 4.6.3 | |
| CLT: 4.6.0.0.1.1365549073 | |
| LLVM-GCC: build 2336 |
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
| argcomplete (0.6.7) | |
| astropy (0.3.2) | |
| atom (0.3.7) | |
| backports.ssl-match-hostname (3.4.0.2) | |
| beautifulsoup4 (4.3.1) | |
| binstar (0.5.3) | |
| bitarray (0.8.1) | |
| blaze (0.5) | |
| blz (0.6.2) | |
| bokeh (0.4.4) |
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
| sudo chgrp -R staff /alt | |
| chmod +R g+rw /alt | |
| umask 002 # allow group write; everyone must do this | |
| chmod g+s . # files created in directory will be in group G |
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 format_bytes(n): | |
| order = 0 | |
| while n > 1024: | |
| order += 1 | |
| n //= 1024 | |
| return '%d%sB' % (n, ('', 'k', 'M', 'G', 'T', 'P')[order]) |
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
| Make sure PYTHONHOME is set to the right path! |
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
| from __future__ import (absolute_import, division, print_function, | |
| unicode_literals) | |
| import logging | |
| import cv2 as cv | |
| import argparse | |
| import os | |
| log = logging.getLogger('test_video') |
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
| name: "VGG_ILSVRC_16_layers" | |
| input: "data" | |
| input_shape { | |
| dim: 1 | |
| dim: 3 | |
| dim: 224 | |
| dim: 224 | |
| } |
OlderNewer