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
angular.module('starter.controllers', []) | |
// A simple controller that fetches a list of data from a service | |
.controller('SelectPicCtrl', function($scope, PetService) { | |
$scope.pets = PetService.all(); | |
$scope.launchPhotoLibrary = function() { | |
navigator.camera.getPicture( cameraSuccess, cameraError, | |
{ sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY } ); |
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
ENV['HOMEBREW_CASK_OPTS'] = "--appdir=/Applications" | |
def brew_install(package, *options) | |
`brew list #{package}` | |
puts $?.class | |
return if $?.success? | |
#sh "brew install #{package} #{options.join ' '}" | |
end |
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
HOMEBREW_VERSION: 0.9.5 | |
ORIGIN: https://github.com/Homebrew/homebrew.git | |
HEAD: 77b29f14fe069256f003185b4607d83b336370f0 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit ivybridge | |
OS X: 10.9.2-x86_64 | |
Xcode: 5.1 | |
CLT: 5.1.0.0.1.1393561416 | |
GCC-4.2: build 5666 |
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
# inside tmux | |
/Users/harrymoreno/.nvm/v0.11.11/share/man:/opt/X11/share/man:/usr/local/git/share/man:/usr/texbin/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man | |
# outside tmux | |
/Users/harrymoreno/.nvm/v0.11.11/share/man:/usr/share/man:/usr/local/share/man:/opt/X11/share/man:/usr/local/git/share/man:/usr/texbin/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man |
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
/Users/harrymoreno/.zprofile | |
/Users/harrymoreno/.nvm/nvm.sh | |
/Users/harrymoreno/.zshrc | |
/Users/harrymoreno/.oh-my-zsh/oh-my-zsh.sh | |
/Users/harrymoreno/.oh-my-zsh/lib/aliases.zsh | |
/Users/harrymoreno/.oh-my-zsh/lib/bzr.zsh | |
/Users/harrymoreno/.oh-my-zsh/lib/completion.zsh | |
/Users/harrymoreno/.oh-my-zsh/lib/correction.zsh | |
/Users/harrymoreno/.oh-my-zsh/lib/directories.zsh | |
/Users/harrymoreno/.oh-my-zsh/lib/functions.zsh |
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
➜ ~ ack manpath -i --files-from=zsh-files-read.sh | |
/Users/harrymoreno/.nvm/nvm.sh | |
390: if [ `expr "$MANPATH" : ".*$NVM_DIR/.*/share/man.*"` != 0 ] ; then | |
391: export MANPATH=${MANPATH%$NVM_DIR/*/share/man*}${MANPATH#*$NVM_DIR/*/share/man:} | |
392: echo "$NVM_DIR/*/share/man removed from \$MANPATH" | |
394: echo "Could not find $NVM_DIR/*/share/man in \$MANPATH" | |
432: if [ -z "$MANPATH" ]; then | |
433: MANPATH=$(manpath) | |
435: MANPATH=${MANPATH#*$NVM_DIR/*/man:} | |
436: if [ `expr "$MANPATH" : ".*$NVM_DIR/.*/share/man"` != 0 ]; then |
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
<% @array.each do |item| %> | |
<a href='<%= item.href %>'><%= item %></a> | |
<% end %> |
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
@results = Box.tagged_with(@item.tags.map(&:name), :any => true) | |
.where(["minimum_amount <= ? and max_amount > ?", @item.amount, @item.amount]) |
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
<ion-view title="{{ activeProject.title }}"> | |
<ion-nav-buttons side="left"> | |
<button menu-toggle="left" class="button button-icon icon ion-navicon"></button> | |
</ion-nav-buttons> | |
<ion-nav-buttons side="right"> | |
<button ng-click="newTask()" class="button button-icon icon ion-compose"></button> | |
</ion-nav-buttons> | |
<ion-content class="has-header"> | |
<ul class="list"> | |
<!-- |
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
def fizzbuzz(limit) | |
limit.times do |num| | |
puts num | |
end | |
end | |
inp = $stdin.read | |
puts fizzbuzz(inp) |