This file contains hidden or 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
/** | |
* Rezolva bugul de navigare | |
* 'Too many calls to location or history APIs in a short period of time.' | |
* Exista un PR pentru Livewire care rezolva asta dar inca nu este merged | |
* Probabil ca pe viitor vom scoate codul asta | |
* | |
*/ | |
const original = window.history.replaceState; | |
let previousState = null |
This file contains hidden or 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
DECLARE @needle varchar(255) | |
SET @needle = '%MaterialHashKey%' | |
SELECT DISTINCT | |
o.name AS Object_Name, | |
o.type_desc | |
FROM sys.sql_modules m | |
INNER JOIN | |
sys.objects o | |
ON m.object_id = o.object_id | |
WHERE m.definition LIKE @needle ESCAPE '\'; |
This file contains hidden or 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
.ng-modal-overlay { | |
position:absolute; | |
z-index:9999; | |
top:0; | |
left:0; | |
width:100%; | |
height:100%; | |
background-color:#000; | |
opacity: 0.8; | |
} |
This file contains hidden or 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
zsh | |
zmv ' (*).mp3' '$1.mp3' | |
exit |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
/* | |
daca n = 5 | |
returns [0, 1, 2, 3, 4] | |
*/ | |
var arr = Array.apply(null, Array(n)); | |
return arr.map(function (x, i) { return i }); |