Skip to content

Instantly share code, notes, and snippets.

@kaplan
kaplan / fontcustom-workflow-multicolor-icons.md
Last active May 15, 2022 23:44
Workflow for creating multicolor icon fonts with FontCustom

Custom Multicolor Icon Workflow with FontCustom

goal: taking a multicolor icon and generating fonts using the same keyboard character in order to layer and color.

  • using illustrator to create the artwork and svgs
  • set the artboard to match in Illustrator: Objects > Artboard > Fit ...
  • separate the layers, and save out black svgs, knocking out the shapes from each other
  • save each layer into a separate folder with name that matches the element, the goal is to make each layer a font

now that you have each layer in its own directory, start making the fonts with FontCustom

@kaplan
kaplan / gist:1de4b6125233b0d59007878953f9bee5
Last active December 21, 2021 20:47
Book a meeting 1836 currently on STG
<div class="mktoForm mainForm" id="mainForm">
<form id="mktoForm_1836"></form>
<script>
MktoForms2.loadForm("//app-sj31.marketo.com", "866-NKD-303", 1836);
(function (){
// Please include the email domains you would like to block in this list
var invalidDomains =
["@gmail.","@yahoo.","@hotmail.","@live.","@aol.","@outlook.","@bright.net","@woh.rr.com","@embarqmail.com","@mindspring.com","@rcn.com","@roadrunner.com","@imail.org","@frontier.com","@adelphia.net","@ya.ru","@alltel.net","@centurytel.net","@bt.com","@usit.net","@sprynet.com","@online.de","@qq.com","@googlemail.com","@rambler.ru","@gmx.at","@wowway.com","@rr.com","@dslextreme.com","@windstream.net","@free.fr","@btinternet.com","@tiscali.co.uk","@fuse.net","@epix.net","@prodigy.net","@123.com","@coxinet.net","@bellatlantic.net","@optusnet.com.au","@freenet.de","@sapo.pt","@usa.com","@shaw.ca","@bluewin.ch","@gmx.fr","@mail2","@mac.com","@rocketmail.com","@live.","@hotmail.","@google.com","@gmx.de","@yahoo.","@verizon.net","@bigpond.com","@netsca
@kaplan
kaplan / tmux_cheatsheet.markdown
Last active May 14, 2021 01:51
My most commonly used tmux commands and reference sites for learning tmux

tmux handy commands and references

####sessions

tmux new -s session_name      # new session by name
tmux attach -t session_name     # attach session by name (you can also use a instead of attach)
tmux switch -t session_name     # switch session by name (you can also use a instead of attach)
tmux list-sessions              # list existing sessions
bind-key : new -s session_name  # new session from within a session  
// detach
tmux detach # detach currently attached session
#@IgnoreInspection BashAddShebang
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "workalicious/ubuntu1604"
config.vm.box_check_update = false
config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
config.vm.network "private_network", ip: "192.169.43.17"
@kaplan
kaplan / gist:26cf1b8b59088eca9bb89821becae435
Last active December 28, 2020 16:19
vagrant up debug 12-28-20
➜ workalicious.work vagrant status
Current machine states:
default not running (vmware_fusion)
The VM is powered off. To restart the VM, run `vagrant up`
➜ workalicious.work vagrant up --debug
INFO global: Vagrant version: 2.2.14
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
<script>
MktoForms2.loadForm("//app-sj31.marketo.com", "866-NKD-303", 1836);
(function (){
// Please include the email domains you would like to block in this list
var invalidDomains =
["@gmail.","@yahoo.","@hotmail.","@live.","@aol.","@outlook.","@bright.net","@woh.rr.com","@embarqmail.com","@mindspring.com","@rcn.com","@roadrunner.com","@imail.org","@frontier.com","@adelphia.net","@ya.ru","@alltel.net","@centurytel.net","@bt.com","@usit.net","@sprynet.com","@online.de","@qq.com","@googlemail.com","@rambler.ru","@gmx.at","@wowway.com","@rr.com","@dslextreme.com","@windstream.net","@free.fr","@btinternet.com","@tiscali.co.uk","@fuse.net","@epix.net","@prodigy.net","@123.com","@coxinet.net","@bellatlantic.net","@optusnet.com.au","@freenet.de","@sapo.pt","@usa.com","@shaw.ca","@bluewin.ch","@gmx.fr","@mail2","@mac.com","@rocketmail.com","@live.","@hotmail.","@google.com","@gmx.de","@yahoo.","@verizon.net","@bigpond.com","@netscape.net","@netzero.net","@icloud.com","@wanadoo.fr","@neo.rr.com","@naver.com","
work-ubuntu-fpm-pool $ VAGRANT_LOG=debug vagrant up --provider vmware_fusion
INFO global: Vagrant version: 1.8.4
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_SHLVL="1"
INFO global: VAGRANT_OLD_ENV_LOGNAME="dave"
INFO global: VAGRANT_OLD_ENV_SHELL="/bin/bash"
INFO global: VAGRANT_OLD_ENV_TERM="xterm-256color"
INFO global: VAGRANT_OLD_ENV_SSH_AUTH_SOCK="/private/tmp/com.apple.launchd.DyF4qytHET/Listeners"
@kaplan
kaplan / middleman_dev_approaches.md
Last active May 12, 2016 11:42
Local development setup approaches for Middleman with Pow or Apache with the Mac OS.

Middleman Local Dev Approaches

Update 03-03-2015
I've moved over to a new MacBookPro running 10.10.2. I think I'm going to leave POW off this machine. I've been trying to use more Vagrant VMs in general, but the Localhost is so fast for just getting something in the browser, especially when testing things out on the front end in the browser. One thing I'm noticing about the 2nd approach is that the build with a vhost works great, but just getting the .git setup was a little tricky. I had to make the main directory, the build directory and git init in each. Then, I added the remotes from the working (development) repository for the source and the staging server repo for the build. Looks like I might install Passenger on this new machine so that I can use a vhost for the source files. Otherwise I need to use the http://0.0.0.0:4567/ or http://localhost:4567/ which isn't a bad thing vs installing Passenger?

Udpate 03-03-2015
Wow, just installed Phusion Passenger in about 15min using the g

@kaplan
kaplan / deploy.rb
Last active December 28, 2015 07:59
Trying to setup a Capistrano 3.x deployment workflow for a Rails app on a Virtual Machine (VirtualBox or VMFusion), Vagrant with Ubuntu, Nginx, Unicorn provisioned using Chef.
set :application, 'deployrails.yo'
set :repo_url, 'http://repo.workalicio.us/deployrails1103.git'
set :deploy_to, '/home/vagrant/deployrails'
set :scm, :git
set :deploy_via, :copy
set :branch, 'master'
set :format, :pretty
set :log_level, :debug
@kaplan
kaplan / scary_craps_revised.rb
Created August 14, 2013 03:08
A revised, non-recursive version of the scary_craps.rb file. This needs to run in the terminal b/c there's a chomp for the rolling again after a point is set. Before I was just hitting command + b to run it in Sublime Text2.
class Die
def roll_die
rand(1..6)
end
end
class CrapsShooter
attr_accessor :point, :dice_roll, :game_over
def crap_out?