Skip to content

Instantly share code, notes, and snippets.


Sanghyun Park baxang

View GitHub Profile

Keybase proof

I hereby claim:

  • I am baxang on github.
  • I am baxang ( on keybase.
  • I have a public key whose fingerprint is 9C1F 7B6E E604 6351 B910 589E 9148 7D4C 4328 B87E

To claim this, I am signing this object:

baxang / .hound.yml
Created Jan 6, 2015
Hound CI configs
View .hound.yml
enabled: true
config_file: config/.rubocop.yml
baxang / get_app_version.rake
Created Nov 9, 2014
Read Info.plist and get a version number from a packaged iOS app distribution file(.ipa).
View get_app_version.rake
desc "Check binary version."
task :get_ver do
require 'rubygems'
require 'zip'
require 'pathname'
require 'cfpropertylist''build/iPhoneOS-8.0-Release/WH.ipa') do |file|
plist = file.get_entry('Payload/')
content = CFPropertyList::List::FORMAT_BINARY, data:
baxang / rails-remote-form-keep-disabled.js
Created Oct 24, 2014
Override Rails' jQuery-ujs default form disable behaviour: Keep the form disabled after a successful submission.
View rails-remote-form-keep-disabled.js
(function($, undefined) {
var $document = $(document);
$document.undelegate($.rails.formSubmitSelector, 'ajax:complete.rails');
$document.delegate($.rails.formSubmitSelector, 'ajax:error.rails', function(event) {
if (this == $.rails.enableFormElements($(this));
baxang / bootstrap-grid-tn.css.scss
Created Mar 26, 2014
Add an additional breakpoint which covers 0..479px to Twitter Bootstrap 3.1.
View bootstrap-grid-tn.css.scss
// Add a breakpoint which covers 0..479px
$screen-tn: 320px !default;
$screen-tn-min: $screen-tn !default;
$screen-tn-max: ($screen-xs-min - 1) !default;
// Additional grid mixins for tn.
@mixin make-tn-column($columns, $gutter: $grid-gutter-width) {
View gist:8533863
$ bundle exec compass watch --trace
>>> Change detected at 12:01:38 to: active_admin.css.scss
error app/assets/stylesheets/active_admin.css.scss (Line 13: File to import not found or unreadable: active_admin/mixins.
Load paths:
identical public/stylesheets/active_admin.css
NoMethodError on line ["32"] of /Users/shpark/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sass-rails-3.2.3/lib/sass/rails/helpers.rb: undefined method `[]' for nil:NilClass
View uploader_input.rb
# A formtastic input which incorporates carrierwave uploader functionality.
# Intelligently adds the cache field, displays and links to the current
# value if there is one, adds a class to the wrapper when replacing an
# existing value, allows removing an existing value with the checkbox
# taking into account validation requirements.
# There are several options:
# * Toggle the replacement field with `replaceable: true/false`.
View gist:5167948
require 'nokogiri'
require 'addressable/uri'
api_key = 'your_key'
uri = Addressable::URI.parse ''
uri.query_values = {
ServiceKey: api_key,
srchwrd: '무악동',
areaNm: '현대아파트',
View gist:4975443
server {
listen 80;
rewrite ^$request_uri? permanent;
baxang / gist:4165837
Created Nov 29, 2012
Canceling current animation when the mouse pointer hovers on/out quickly.
View gist:4165837
$('#i-am-an .box').hover(
function(e) {
var t = $(this).find('.drawer');
if (':animated')) {
t.stop(true, false);
t.delay(100).animate({top:'0px'}, 400);
function(e) {
var t = $(this).find('.drawer');