This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# calculate the average response time of the server for a given url received as an argument. | |
# Number of requests to make | |
requests=$1 | |
# URL to make requests to | |
url=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// General | |
cl_crosshair_sniper_width "2"; | |
cl_draw_only_deathnotices "0"; | |
cl_hud_radar_scale "1.15"; | |
cl_radar_always_centered "0"; | |
cl_radar_icon_scale_min "1"; | |
cl_radar_rotate "1"; | |
cl_radar_scale "0.275"; | |
cl_radar_square_with_scoreboard "1"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user_id,company_id,event_name,action,date_time | |
1,1,login,put,2019-04-01 11:03:50 | |
2,2,budget,put,2019-04-02 12:03:50 | |
3,3,,get,2019-04-01 11:05:50 | |
4,3,,,2019-04-01 11:07:50 | |
4,3,budget,get, | |
5,3,budget,put,2019-04-01 11:10:50 | |
10,1,dashboard,get,2019-04-01 12:05:50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Filter an array of objects to get the most frequent element | |
* | |
* @param {Object[]} arr The array of objects | |
* @param {String} keyname The name that will be used to filter the objects | |
* @returns {Array} | |
*/ | |
getMostFrequent(arr, keyname) { | |
// Store how many times each element appears | |
let lookup = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-09-20T17:25:22.873Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Format phone numbers where an ninth digit is optional | |
*/ | |
(function(){ | |
let phoneInputs = [ '[name="phone"]' ]; | |
let phoneMaskBehavior = function (val) { | |
return val.replace(/\D/g, '').length === 11 ? '(00) 00000-0000' : '(00) 0000-00009'; | |
}; |