Skip to content

Instantly share code, notes, and snippets.

Zidni Mubarock barockok

Block or report user

Report or block barockok

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
otaviomedeiros / alias_matcher.rb
Created Mar 1, 2012
RSpec matcher for alias_method
View alias_matcher.rb
# RSpec matcher for alias_method.
# Usage:
# describe User do
# it { should alias_from(:username).to(:email) }
# end
RSpec::Matchers.define :alias_from do |alias_method|
barockok / saad_al_ghamidi.rb
Last active Jun 10, 2016
Al-quran 30 Juz 114 surah downloader reciter : Saad Al Ghamidi
View saad_al_ghamidi.rb
require 'mechanize'
require 'nokogiri'
require 'active_support/all'
class SaadAlGhamidi
def initialize
@page_agent =
@file_agent =
@file_agent.pluggable_parser.default = Mechanize::Download
barockok / veritrans_vtweb_activemerchant_snippet.rb
Last active Dec 24, 2015
Sample code for implementation vt-web with activemerchant
View veritrans_vtweb_activemerchant_snippet.rb
merchant_hash_key = 'XXXXXXXXXXXXXXXXXXX'
# implemetation for generating form
payment_service_for, merchant_id, \
merchant_hash_key: merchant_hash_key,
service: :veritrans,
amount: @order.total_amount,
currency: 'IDR',
html: {:id => 'payment-form' , :authenticity_token => false } do |service|
jrafanie / gist:3011499
Created Jun 28, 2012
ActiveRecord::Base doesn't serialize instance variables
View gist:3011499
~/Code/playground/rails-3-2-stable $ cat app/models/person.rb
class Person
attr_accessor :abc
~/Code/playground/rails-3-2-stable $ cat app/models/story.rb
class Story < ActiveRecord::Base
attr_accessor :abc
OliverJAsh / bar-es6.js
Created Nov 13, 2014
sandboxed-module error with transitive ES6 deps
View bar-es6.js
export default 'bar';
You can’t perform that action at this time.