Skip to content

Instantly share code, notes, and snippets.

masahiroSkd MasahiroSakoda

Block or report user

Report or block MasahiroSakoda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
MasahiroSakoda / Bowerfile
Created May 21, 2015
bower-railsでRailsのフロントエンド開発を少し幸せにする ref:
View Bowerfile
asset 'jquery-ujs'
asset 'bootstrap-sass'
asset 'fontawesome'

Vagrant Tutorial


  • target
  • what is vagrant?
  • prepare
    • install VirutalBox
  • Install Vagrant
  • Create box
  • Initialize box
View BeaconRanege.m
- (void)locationManager:(CLLocationManager *)manager didRangeBeacons:(NSArray *)beacons inRegion:(CLBeaconRegion *)region { NSString *message = nil;
for (CLBeacon *beacon in beacons) {
switch (beacon.proximity) {
case CLProximityImmediate:
message = @"CLProximityImmediate";
case CLProximityNear:
message = @"CLProximityNear";
case CLProximityFar:

Guard is CLI tool to handle events on filesystem modifications

Getting Started


install with gemfiile

group :development do
  gem 'guard'
MasahiroSakoda / Podfile
Created Jan 13, 2014
Collection of Basic CocoaPods module
View Podfile
# Test Frameworks
pod 'gh-unit'
pod 'kiwi'
## Mock Frameworks
pod 'OCMock'
# Debugging/Logging
pod 'UALogger'
MasahiroSakoda /
Created May 2, 2013
rbenv install script environment: Mac OSX, using zsh
# move to home directory
cd ${HOME};
# clone rbenv into home directory
git clone git:// ~/.rbenv
# set env path for zsh
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv
MasahiroSakoda /
Created Apr 22, 2013
Ajax function on jQuery 1.8 style by CoffeeScript
ajax_req = (param, beforeReq, doneReq, afterReq) ->
beforeReq = null if typeof beforeReq == 'undefined'
doneReq = null if typeof doneReq == 'undefined'
afterReq = null if typeof afterReq == 'undefined'
$.ajax '',
beforeSend: (jqXHR, settings) ->
console.log settings
View theme.html
<!-- Add the following lines to theme's html code right before </head> -->
<script src=""></script>
<script src=""></script>
<script src=""></script>
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist"></div>
MasahiroSakoda / gist:3009337
Created Jun 28, 2012
Windows PowerShell Alias settings
View gist:3009337
Windows PowerShell Alias settings
alias behave like UNIX system
MasahiroSakoda / .vimperatorrc
Created Nov 24, 2011
vimperator environment settings
View .vimperatorrc
noremap H gT
noremap L gt
noremap h <A-Left>
noremap l <A-Right>
noremap <BS> <A-Left>
set titlestring=FireFox
noremap j 3j
noremap k 3k
You can’t perform that action at this time.