I hereby claim:
- I am amrikarisma on github.
- I am amrikarisma (https://keybase.io/amrikarisma) on keybase.
- I have a public key ASDb915jfT_Z5T9VcaqKVFLb3tCONatTc4BQ_mL1BqNXGgo
To claim this, I am signing this object:
| <LinearLayout | |
| android:orientation="vertical" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content"> | |
| <TextView | |
| android:text="Guest List" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" /> | |
I hereby claim:
To claim this, I am signing this object:
| <?PHP | |
| /** | |
| * Spintax - A helper class to process Spintax strings. | |
| * @name Spintax | |
| * @author Jason Davis - https://www.codedevelopr.com/ | |
| * Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/ | |
| */ | |
| class Spintax | |
| { | |
| public function process($text) |
| <?php | |
| function mu_hide_plugins_network( $plugins ) { | |
| // let's hide akismet | |
| if( in_array( 'akismet/akismet.php', array_keys( $plugins ) ) ) { | |
| unset( $plugins['akismet/akismet.php'] ); | |
| } | |
| return $plugins; | |
| } | |
| add_filter( 'all_plugins', 'mu_hide_plugins_network' ); |
| <?php | |
| function hide_plugin_kerjadev() { | |
| global $wp_list_table; | |
| $hidearr = array('plugin-directory/plugin-file.php'); | |
| $myplugins = $wp_list_table->items; | |
| foreach ($myplugins as $key => $val) { | |
| if (in_array($key,$hidearr)) { | |
| unset($wp_list_table->items[$key]); | |
| } | |
| } |
| // Shade a color: mix a color with black | |
| // Example : shade-color($color__btn-primary, 10%) | |
| @function shade-color($color, $weight) { | |
| @return mix(black, $color, $weight); | |
| } |
| <?php | |
| // Removes from admin menu | |
| add_action( 'admin_menu', 'my_remove_admin_menus' ); | |
| function my_remove_admin_menus() { | |
| remove_menu_page( 'edit-comments.php' ); | |
| } | |
| // Removes from post and pages | |
| add_action('init', 'remove_comment_support', 100); | |
| function remove_comment_support() { |
| # Run legacy PHP 5.3 and MySQL 5.1 on Docker | |
| version: '3.7' | |
| services: | |
| php: | |
| container_name: 'php-5.3.29-apache' | |
| depends_on: | |
| - mysql | |
| image: php:5.3.29-apache | |
| volumes: | |
| - ./www:/var/www |
| <input type="file" accept="image/*" onchange="loadFile(event)"> | |
| <img id="output"/> | |
| <script> | |
| var loadFile = function(event) { | |
| var output = document.getElementById('output'); | |
| output.src = URL.createObjectURL(event.target.files[0]); | |
| output.onload = function() { | |
| URL.revokeObjectURL(output.src) // free memory | |
| } | |
| }; |
| <?php | |
| public function scopeWithPrice($smartphone) | |
| { | |
| $queryGetMinPrice = $smartphone->select([ | |
| '*', | |
| 'price' => ProductPrice::select('price')->where('priceable_type', Smartphone::class)->whereColumn('priceable_id', 'smartphones.id')->orderBy('price', 'ASC')->take(1) | |
| ]); | |
| return $queryGetMinPrice; | |
| } |