Instantly share code, notes, and snippets.

Craig Dennis craigmdennis

View GitHub Profile
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"
},
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
},
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"
}
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'
})
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
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"
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",
View policy.json
{
"Version": "2008-10-17",
"Id": "S3PolicyId1",
"Statement": [
{
"Sid": "IPAllow",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
View config.json
{
"root": {
"src": "./source",
"dest": "./.tmp"
},
"tasks": {
"browserSync": {
"proxy": "http://localhost:4567",
"reloadDelay" : 2000