create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| tell application "Google Chrome" | |
| reload active tab of window 1 | |
| end tell |
| // Get parameters from the current URL | |
| getParams(window.location.href); | |
| // Get parameters from a URL string | |
| var url = 'https://gomakethings.com?sandwhich=chicken%20salad&bread=wheat'; | |
| getParams(url); |
| <?php | |
| // Converts a number into a short version, eg: 1000 -> 1k | |
| // Based on: http://stackoverflow.com/a/4371114 | |
| function number_format_short( $n, $precision = 1 ) { | |
| if ($n < 900) { | |
| // 0 - 900 | |
| $n_format = number_format($n, $precision); | |
| $suffix = ''; | |
| } else if ($n < 900000) { |
| /** | |
| * Mass (bulk) insert or update on duplicate for Laravel 4/5 | |
| * | |
| * insertOrUpdate([ | |
| * ['id'=>1,'value'=>10], | |
| * ['id'=>2,'value'=>60] | |
| * ]); | |
| * | |
| * | |
| * @param array $rows |
| (\(\'.*)([\ \t]+)(.*\'\)) |
| <?php | |
| $curl = curl_init(); | |
| curl_setopt_array($curl, array( | |
| CURLOPT_URL => "https://iid.googleapis.com/iid/info/DEVICE_TOKEN?details=true", | |
| CURLOPT_RETURNTRANSFER => true, | |
| CURLOPT_ENCODING => "", | |
| CURLOPT_MAXREDIRS => 10, | |
| CURLOPT_TIMEOUT => 0, |
| <?php | |
| $curl = curl_init(); | |
| curl_setopt_array($curl, array( | |
| CURLOPT_URL => "https://iid.googleapis.com/iid/v1/DEVICE_TOKEN/rel/topics/TOPIC_NAME", | |
| CURLOPT_RETURNTRANSFER => true, | |
| CURLOPT_ENCODING => "", | |
| CURLOPT_MAXREDIRS => 10, | |
| CURLOPT_TIMEOUT => 0, |
| <?php | |
| $curl = curl_init(); | |
| curl_setopt_array($curl, array( | |
| CURLOPT_URL => "https://fcm.googleapis.com/fcm/send", | |
| CURLOPT_RETURNTRANSFER => true, | |
| CURLOPT_ENCODING => "", | |
| CURLOPT_MAXREDIRS => 10, | |
| CURLOPT_TIMEOUT => 0, |
CASE
WHEN age_pax<20 then "<19"
WHEN age_pax<30 then "20-30"
WHEN age_pax<35 then "30-34"
WHEN age_pax<40 then "35-39"
WHEN age_pax<45 then "40-44"
WHEN age_pax<50 then "45-49"
WHEN age_pax<55 then "50-54"
ELSE ">=55"