Skip to content

Instantly share code, notes, and snippets.

View ChrisSavoie's full-sized avatar

Chris Savoie ChrisSavoie

View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ChrisSavoie
ChrisSavoie / CreateLilypadBrief.scpt
Created July 14, 2018 16:40
Create Lilypad Client Brief Evernote Automation Script
set theResponse to display dialog "Client Name" default answer "" with icon note buttons {"Cancel", "Continue"} default button "Continue"
set myQuery to "tag:^" & text returned of theResponse & "*"
set lilyResume to "tag:\"📗 Resume\" " & myQuery
set lilyInterview to "tag:\"🗣 Interview\" " & myQuery
set lilyCoverLetter to "tag:\"📝 Letters\" " & myQuery
set lilyDocuments to "tag:\"📘 LinkedIn\" " & myQuery
tell application "Evernote"
set myNotes to find notes lilyResume
-- open collection window with query string lilyResume
set myNote to item 1 of myNotes
@ChrisSavoie
ChrisSavoie / webapp.sh
Last active August 28, 2019 20:34
Turn a website into a standalone desktop application via Google Canary
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name=$inputline
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url=$inputline
@ChrisSavoie
ChrisSavoie / sig.html
Created September 10, 2017 20:37
Email Signatures
<strong style="font-family:'Open Sans';color:#24D498;font-size:14px">Chris Savoie</strong>
<a href="https://lilypadresumes.com" style="display:block;font-family:'Open Sans';font-size:10px;color:#7F8F9E;font-style:italic;text-decoration:none;letter-spacing:0.03em">Lilypad Career Marketing</a>
<hr>
<strong style="font-family:'Open Sans';color:#249bd6;font-size:14px">Chris Savoie</strong>
<p style="dislpay:block;font-family:'Open Sans';font-size:10px;margin:0;padding:0;">
<a href="https://chris-savoie.com" style="font-style:italic;color:#7F8F9E;text-decoration:none;letter-spacing:0.03em">Portfolio</a>
<span style="color:#c4ccd4;">•</span>
<a href="https://linkedin.com/in/chrissavoe" style="font-style:italic;color:#7F8F9E;text-decoration:none;letter-spacing:0.03em">LinkedIn</a>
@ChrisSavoie
ChrisSavoie / bms-megamenu.liquid
Created August 25, 2017 14:08
'Recursive Snippet Include' to make nested navigation. o use, simply `{% include 'bms-megamenu' [with linklist_object] %}` (where `linklist_obj` would be replaced with some linklist on your store to serve as the top level controller, defaulting to a linklist named 'megamenu-top' if none is provided) Linklist structure: If the element in the link…
{% comment %}
Created by: BMS - DB
Megamenu: Output nested lists to be styled as a menu
{% endcomment %}
{% assign list = bms-megamenu | default: linklists['megamenu-top'] %}
{% assign layer_depth = depth | default: 0 %}
{% assign next_layer_depth = layer_depth | plus: 1 %}
@ChrisSavoie
ChrisSavoie / config.yml
Created August 15, 2017 14:31
Shopify Themekit Base Config
# This file contains the information needed for Shopify to authenticate
# requests and edit/update your remote theme files.
#
# 1. Set up a private app (https://help.shopify.com/api/guides/api-credentials#generate-private-app-credentials)
# with "Read and write" permissions for "Theme templates and theme assets".
# 2. Replace the required variables for each environment below.
#
# password, theme_id, and store variables are required.
#
# For more information on this config file:
@ChrisSavoie
ChrisSavoie / 0_reuse_code.js
Created February 9, 2017 19:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ChrisSavoie
ChrisSavoie / osx-for-hackers.sh
Created September 6, 2016 19:02 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'