I hereby claim:
- I am ryaan-anthony on github.
- I am ryaan (https://keybase.io/ryaan) on keybase.
- I have a public key whose fingerprint is 88F0 7FB7 72AF 8653 688A 018E A46F 2085 4626 5A54
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| -----BEGIN PGP MESSAGE----- | |
| Comment: https://keybase.io/download | |
| Version: Keybase Go 1.0.7 (darwin) | |
| wcBMAxtrcaH3hcQXAQgAn5yMvw0smw7R5C5QBkIi8aWzVbb4ch2XNQQUXPr2Npc5 | |
| uZS95NokygefL8A8seLw5LCKuUFyS+vYrg7kNJ5Mjmfh/aeIjEJT7La1Et9tl+z1 | |
| GBtU/cXRQGL9m6K0uGb00BGv8r8GZQDU34Q9djMl2WWX8UuWINdXPzFgJFzLT6jT | |
| RK/YQIVjVV95owxU3pwYZ6qFQekFcgk/N/5Tf/T4tKV4S+QkVOBIEltU6aG3gRaQ | |
| YMkcOhd+EkfZodCzda+GBGtVISY3IOLSkF742ut3GPEwzDs9A5W3CGP2jNPYvTJg | |
| 94tAeOodYbWTWTEL0LQamPL4Ljpsdbbb6mD98nSAu9LgAeQIH78D548AV6BUtoj1 |
| class Booking | |
| attr_reader :nights, :minibar_items, :room | |
| def initialize nights, minibar_items, room | |
| @nights = nights | |
| @minibar_items = minibar_items | |
| @room = room | |
| end | |
| def calculate_total_cost |
| <?php | |
| echo gethostname() . PHP_EOL; | |
| !function_exists('apc_clear_cache') ? : apc_clear_cache(); | |
| !function_exists('apc_clear_cache') ? : apc_clear_cache('user'); | |
| !function_exists('opcache_reset') ? : opcache_reset(); |
| # data trait | |
| module Option | |
| def list | |
| all.sort.unshift(default) | |
| end | |
| def default | |
| 'all' | |
| end | |
| end |
| class BaseObject | |
| def initialize(params = {}) | |
| params.each { |key,value| instance_variable_set("@#{key}", value) } | |
| end | |
| end | |
| class ModelObject < BaseObject | |
| def say | |
| @model | |
| end |
| <script type="text/javascript"> | |
| class Parameters | |
| { | |
| constructor() | |
| { | |
| return new Proxy(Object.assign(this, arguments[0]), { | |
| get: function(target, name) { | |
| return name in target ? target[name] : undefined; | |
| } | |
| }); |
| #!/bin/bash | |
| while read -p "> " line; do | |
| if [[ $line == "log" ]]; then | |
| exec >>log 2>&1 | |
| fi | |
| echo $line | |
| exec &>$(tty) | |
| done |
| #!/bin/bash | |
| if [ -z $1 ] | |
| then | |
| echo 'Sitemap must be provided as first argument.';exit 2 | |
| fi | |
| # Helper function to read xml | |
| read_dom () { | |
| local IFS=\> |
| black=$(tput setaf 0) | |
| red=$(tput setaf 1) | |
| green=$(tput setaf 2) | |
| yellow=$(tput setaf 3) | |
| blue=$(tput setaf 4) | |
| magenta=$(tput setaf 5) | |
| cyan=$(tput setaf 6) | |
| white=$(tput setaf 7) | |
| term_reset=$(tput sgr0) | |
| git_branch() { |