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
set message=%1 | |
git add . | |
git commit -m %message% | |
git push |
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
<?php | |
function insertGetIds(string $table, array $rowsToInsert) { | |
$ids = []; | |
foreach($rowsToInsert as $row) { | |
array_push($ids, \Illuminate\Support\Facades\DB::table($table)->insertGetId($row)); | |
} | |
return $ids; | |
} |
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
const random = (low, high) => low + ~~((high - low) * Math.random()) |
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
function l() { | |
const argumentsArray = Array.from(arguments); | |
const strings = argumentsArray.filter( | |
($arg) => $arg instanceof String || typeof $arg == "string" | |
); | |
const objects = argumentsArray.filter( | |
($arg) => !($arg instanceof String || typeof $arg == "string") | |
); | |
if (strings.length) { | |
console.log("[STRINGS]"); |
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
/** | |
* @param {string[]} strs | |
* @return {string} | |
* https://underdash.web.app | |
* https://leetcode.com/problems/longest-common-prefix/ | |
* https://underdash.medium.com/spiral-matrix-javascript-c8aa2bd957e | |
* | |
* Copyright reserved by Taha Shieenavaz (Underdash) | |
*/ |
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
/** | |
* @param {number[][]} matrix | |
* @return {number[]} | |
* https://underdash.web.app | |
* https://leetcode.com/problems/spiral-matrix/ | |
* https://underdash.tech/spiral-matrix/ | |
* Copyright reserved by Taha Shieenavaz (Underdash) | |
*/ |