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 DOWNLOAD = (data, fileName) => { | |
const a = document.createElement("a"); | |
document.body.appendChild(a); | |
a.style = "display: none"; | |
const blob = new Blob([data], { type: "octet/stream" }); | |
a.href = window.URL.createObjectURL(blob); | |
a.download = fileName; | |
a.click(); | |
window.URL.revokeObjectURL(a.href); | |
}; |
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 | |
#Basil Arackal's MacOS Defaults script | |
# This script is derived from @mathiasbynens | |
# ~/.osx — http://mths.be/osx | |
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/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
#Google Code Labs: https://codelabs.developers.google.com/codelabs/face-detection/ | |
#Final Project: https://github.com/LmntrX/Vision | |
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
///* | |
#include <iostream> | |
#include <fstream> | |
//*/ | |
/* | |
#include <iostream.h> | |
#include <fstream.h> | |
//*/ | |
#include <conio.h> |