Skip to content

Instantly share code, notes, and snippets.

🚀
Hiring a Senior Product Designer

Craig Dennis craigmdennis

🚀
Hiring a Senior Product Designer
Block or report user

Report or block craigmdennis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@craigmdennis
craigmdennis / backslash.json
Created Jan 30, 2019
Karabiner: Change the backslash key to be delete unless it's held down, then show backslash as normal.
View backslash.json
{
"title": "Backslash to Delete Unless Held",
"rules": [
{
"description": "Change the backslash key to be delete unless it's held down, then show backslash as normal.",
"manipulators": [
{
"from": {
"key_code": "backslash"
},
@craigmdennis
craigmdennis / svgo.json
Last active Feb 13, 2019
SVGo Sketch Plugin Configuration
View svgo.json
{
"comment": "This is the settings file for the SVGO Compressor Plugin. For more info, please check <https://github.com/BohemianCoding/svgo-compressor>",
"pretty": true,
"indent": 2,
"floatPrecision": 3,
"plugins": [
{
"name": "removeDoctype",
"enabled": true
},
@craigmdennis
craigmdennis / post-merge
Last active Mar 21, 2017 — forked from sindresorhus/post-merge
Git hook to run a command after `git pull` if a specified file was changed
View post-merge
#!/usr/bin/env bash
# GIT hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}
@craigmdennis
craigmdennis / index.pug
Created Jan 3, 2017
Pass objects into Pug mixins for default arguments
View index.pug
include mixin.pug
+navigation_li('Anchor text here', {
a_class: 'c-main-navigation__link',
li_class: 'active'
})
+navigation_li('More anchor text here', {
a_class: 'c-main-navigation__link'
})
@craigmdennis
craigmdennis / build-before.yml
Last active Aug 11, 2017
Configure Circle CI to deploy Trellis
View build-before.yml
- name: Run npm install
command: npm install
connection: local
args:
chdir: "{{ project.local_path }}/web/app"
tags: skip-using-ci
- name: Rebuild Node Sass
command: npm rebuild node-sass
connection: local
@craigmdennis
craigmdennis / multiple_ssh_setting.md
Last active Dec 10, 2016 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts
View multiple_ssh_setting.md

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@craigmdennis
craigmdennis / _tools_fonts.scss
Last active Jan 25, 2018
Generated by SassMeister.com.
View _tools_fonts.scss
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
$font-name: 'GT-Walsheim';
$font-path: '../fonts/';
$weights: (
400 'Regular',
View preferences.sublime-settings
{
"auto_indent": true,
"binary_file_patterns":
[
"*.bz2",
"*.dds",
"*.eot",
"*.gif",
"*.gz",
"*.ico",
@craigmdennis
craigmdennis / policy.json
Created Apr 5, 2016
Whitelist IPs for S3
View policy.json
{
"Version": "2008-10-17",
"Id": "S3PolicyId1",
"Statement": [
{
"Sid": "IPAllow",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
@craigmdennis
craigmdennis / config.json
Last active Apr 4, 2016
Gulp Starter config file for using with Middleman as an external pipeline
View config.json
{
"root": {
"src": "./source",
"dest": "./.tmp"
},
"tasks": {
"browserSync": {
"proxy": "http://localhost:4567",
"reloadDelay" : 2000
You can’t perform that action at this time.