I hereby claim:
- I am mp3063 on github.
- I am mp3063 (https://keybase.io/mp3063) on keybase.
- I have a public key ASBBm7w345Ese2vm170qPIf735EiFg9A6MywbptQ0uYwFQo
To claim this, I am signing this object:
| sudo update-alternatives --config php |
| function array_replace_keys_recursively(array $arr, array $set) | |
| { | |
| if (is_array($arr) && is_array($set)) { | |
| $newArr = []; | |
| foreach ($arr as $k => $v) { | |
| $key = array_key_exists($k, $set) ? $set[$k] : $k; | |
| $newArr[$key] = is_array($v) ? array_replace_keys_recursively($v, $set) : $v; | |
| } | |
| return $newArr; |
| gloga='git log --oneline --decorate --graph --all' |
| function getUrlParameter(name) { | |
| name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); | |
| let regex = new RegExp('[\\?&]' + name + '=([^&#]*)'); | |
| let results = regex.exec(location.search); | |
| return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); | |
| }; |
I hereby claim:
To claim this, I am signing this object:
| - @product.company.products.each do |product| | |
| - if product.configurable? | |
| - product_hash_id = {product: product.id} | |
| .product-name | |
| %br | |
| =product.name | |
| %br | |
| -product.subproducts.each do |sub| | |
| .ml-5 | |
| = check_box_tag "product[#{product.id}][]", sub.id |
| rake db:rollback STEP=1 |
| default_scope { joins(:subproduct).order("configuration_position desc nulls last").order(sku: :asc) } |
| default_scope { order("asset_priority desc nulls last") } |
| require 'rubygems' | |
| require 'json' | |
| require 'csv' | |
| def is_int(str) | |
| # Check if a string should be an integer | |
| return !!(str =~ /^[-+]?[1-9]([0-9]*)?$/) | |
| end | |
| lines = CSV.open(ARGV[0]).readlines //ARGV[0] is a path to .csv file |