Skip to content

Instantly share code, notes, and snippets.

View BasilArackal's full-sized avatar
🎯
Focusing

Basil Arackal BasilArackal

🎯
Focusing
View GitHub Profile
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);
};
@BasilArackal
BasilArackal / macos-defaults.sh
Created May 30, 2017 06:06
Basil Arackal's MacOS Defaults script
#!/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 &
@BasilArackal
BasilArackal / CodeLabs
Created October 1, 2016 08:06
GDG DevFest 2016
#Google Code Labs: https://codelabs.developers.google.com/codelabs/face-detection/
#Final Project: https://github.com/LmntrX/Vision
///*
#include <iostream>
#include <fstream>
//*/
/*
#include <iostream.h>
#include <fstream.h>
//*/
#include <conio.h>