Skip to content

Instantly share code, notes, and snippets.

View morenoh149's full-sized avatar
💭
Working from 🛰

Harry Moreno morenoh149

💭
Working from 🛰
View GitHub Profile
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 } );
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
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
# 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
/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
➜ ~ 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
@morenoh149
morenoh149 / gist:9865416
Created March 30, 2014 00:40
each block
<% @array.each do |item| %>
<a href='<%= item.href %>'><%= item %></a>
<% end %>
@morenoh149
morenoh149 / gist:9868225
Created March 30, 2014 05:50
filter by amount
@results = Box.tagged_with(@item.tags.map(&:name), :any => true)
.where(["minimum_amount <= ? and max_amount > ?", @item.amount, @item.amount])
<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">
<!--
def fizzbuzz(limit)
limit.times do |num|
puts num
end
end
inp = $stdin.read
puts fizzbuzz(inp)