- Tenda
- Kompor
- Peralatan masak (panci)
- Ransel/tas gunung
| @startuml | |
| ' Preset: Monochrome | |
| !define STYLE_DEFAULT_ACCENT #000 | |
| !define STYLE_DEFAULT_BGC #FFF | |
| !define STYLE_DEFAULT_FGC #000 | |
| ' Preset: Material Light Blue (200) | |
| !define STYLE_LIGHT_ACCENT #81D4FA | |
| !define STYLE_LIGHT_BGC #FFF |
| require 'socket' | |
| require 'set' | |
| require 'securerandom' | |
| module Helper | |
| module ProcessCLI | |
| def running_daemon command | |
| puts "RUNNING : #{command}" | |
| pid_file = "/tmp/ruby-processcli-#{SecureRandom.uuid}.pid" | |
| if ENV['SHOW_BG_OUTPUT'] |
| export default 'bar'; |
| class ApplicationController < ActionController::Base | |
| before_action :repair_nested_params | |
| # -- your code here | |
| protected | |
| def repair_nested_params(obj = params) | |
| obj.each do |key, value| | |
| if value.is_a? Hash | |
| # If any non-integer keys |
| # RSpec matcher for alias_method. | |
| # https://gist.github.com/1950961 | |
| # Usage: | |
| # | |
| # describe User do | |
| # it { should alias_from(:username).to(:email) } | |
| # end | |
| RSpec::Matchers.define :alias_from do |alias_method| |
| merchant_id = 'XXXXXXXXXXXXXXXXXXX' | |
| merchant_hash_key = 'XXXXXXXXXXXXXXXXXXX' | |
| # implemetation for generating form | |
| payment_service_for @order.id, 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| |
| require 'mechanize' | |
| require 'nokogiri' | |
| require 'active_support/all' | |
| class SaadAlGhamidi | |
| def initialize | |
| @page_agent = Mechanize.new | |
| @file_agent = Mechanize.new | |
| @file_agent.pluggable_parser.default = Mechanize::Download | |
| end |
| <?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
| /** | |
| * CodeIgniter Curl Class | |
| * | |
| * Work with remote servers via cURL much easier than using the native PHP bindings. | |
| * | |
| * @package CodeIgniter | |
| * @subpackage Libraries | |
| * @category Libraries |
| <?php | |
| /** | |
| * Premailer API PHP class | |
| * Premailer is a library/service for making HTML more palatable for various inept email clients, in particular GMail | |
| * Primary function is to convert style tags into equivalent inline styles so styling can survive <head> tag removal | |
| * Premailer is owned by Dialect Communications group | |
| * @link http://premailer.dialect.ca/api | |
| * @author Marcus Bointon <[email protected]> | |
| */ | |