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
export const openInNewTab = (url: string) => { | |
const newWindow = window.open(url, '_blank', 'noopener,noreferrer') | |
if (newWindow) newWindow.opener = null | |
} |
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
[ | |
{ | |
"state":"Alaska", | |
"latitude":61.3850, | |
"longitude":-152.2683 | |
}, | |
{ | |
"state":"Alabama", | |
"latitude":32.7990, | |
"longitude":-86.8073 |
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
import os | |
meses = [ | |
'enero','febrero','marzo','abril','mayo', 'junio', 'julio', | |
'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre', | |
] | |
resultados = [] | |
for mes in meses: | |
read_file = pd.read_excel(os.path.join(path, mes, + ".xlsx"), "Hoja1") |
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
$ git checkout feature/my-feature | |
$ git rebase -i master | |
$ git checkout master | |
$ git merge --no-ff feature/my-feature | |
$ git push origin master | |
$ git branch -d feature/my-feature |
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
$ git checkout feature/my-feature | |
$ git rebase -i master | |
$ git checkout master | |
$ git merge --ff-only feature/my-feature | |
$ git push origin master | |
$ git branch -d feature/my-feature |
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
$ git checkout -b feature/my-feature master |
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
<!-- | |
Reference: https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API | |
--> | |
<html> | |
<head> | |
<title>Aloha!</title> | |
<script> | |
// START OF: VanillaJS implementation for DOM ready | |
window.readyHandlers = []; | |
window.ready = function ready(handler) { |
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 generateUUID() { | |
let d = new Date().getTime(); | |
if (typeof performance !== 'undefined' && typeof performance.now === 'function') { | |
d += performance.now(); //use high-precision timer if available | |
} | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { | |
let r = (d + Math.random() * 16) % 16 | 0; | |
d = Math.floor(d / 16); | |
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16); | |
}); |
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
/** | |
* Parse JavaScript SDK v1.9.2 | |
* | |
* The source tree of this library can be found at | |
* https://github.com/ParsePlatform/Parse-SDK-JS | |
*/ | |
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
# Create a branch to play safe in | |
--> (git: master m) $ git checkout -b rebase_example | |
Switched to a new branch 'rebase_example' | |
# Create a file | |
--> (git: rebase_example m) $ touch some_file.txt | |
# Add it to git | |
--> (git: rebase_example ? m) $ git add some_file.txt |
NewerOlder