Skip to content

Instantly share code, notes, and snippets.

View codeangler's full-sized avatar

Casey Burnett codeangler

View GitHub Profile
@codeangler
codeangler / setup.sh
Created October 16, 2023 16:17 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@codeangler
codeangler / download-file.js
Created March 12, 2018 18:40 — forked from javilobo8/download-file.js
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
@codeangler
codeangler / settings.json
Created September 12, 2016 21:22 — forked from wesbos/settings.json
Wes Bos' Sublime Text Settings
{
"added_words":
[
"Mockup",
"plugins",
"coffeescript",
"sourcemaps",
"html",
"plugin",
"init",