One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| let dogs = [ | |
| {name:'Osito', age: 15}, | |
| {name:'Nana', age: 1}, | |
| {name:'Bella', age: 8}, | |
| ] | |
| function filterDogs(minimumAge){ | |
| let dogs2 = [] | |
| for(let i = 0; i<dogs.length; i++){ | |
| if(minimumAge <= dogs[i].age) |
| function createCounter(startingValue){ | |
| var counter = startingValue | |
| var newObject = { | |
| getValue: function() { return counter }, | |
| increment: function() { return counter++ } | |
| } | |
| return newObject | |
| } | |
| numbers = [1, 2, 3, 4, 5] | |
| function onlyEvens(n) { | |
| if(n % 2 == 0) { | |
| return true | |
| } | |
| else { | |
| return false | |
| } | |
| } |
| function var_error_log( $object=null ){ | |
| ob_start(); // start buffer capture | |
| var_dump( $object ); // dump the values | |
| $contents = ob_get_contents(); // put the buffer into a variable | |
| ob_end_clean(); // end capture | |
| error_log( $contents ); // log contents of the result of var_dump( $object ) | |
| } |
| error_log( print_r($multidimensionalarray, TRUE) ); |
| INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) | |
| VALUES ('newadmin', MD5('pass123'), 'firstname lastname', '[email protected]', '0'); | |
| INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
| VALUES (NULL, (Select max(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
| INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
| VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10'); |
| grep -rnw '/path/to/somewhere/' -e 'pattern' |
| (((ftp|https?):\/\/)(www\.)?|www\.)([\da-z-_\.]+)([a-z\.]{2,7})([\/\w\.-_\?\&]*)*\/? |
| find . -type f | sed 's/^.*\/\([^/]*\)$/\1/' | sort | uniq -c | grep -v '^ 1' | |
| IFS=$'\n'; for f in `find . -type f | sed 's/^.*\/\([^/]*\)$/\1/' | sort | uniq -c | grep -v '^ 1'`; do echo $f; t=`echo "$f" | awk '{print $2}'`; find . -name $t; echo $'\n'; done | |
| IFS=$'\n' | |
| dupes=`find . -type f | | |
| sed 's/^.*\/\([^/]*\)$/\1/' | | |
| sort | |