Skip to content

Instantly share code, notes, and snippets.

View charrismatic's full-sized avatar
☝️
Life is Code

Matt Harris charrismatic

☝️
Life is Code
View GitHub Profile
@charrismatic
charrismatic / .eslintrc
Created May 3, 2018 16:24 — forked from alefteris/.eslintrc
ESLint default config in YAML format
---
parser: espree
env:
amd: false
browser: false
es6: false
jasmine: false
jquery: false
meteor: false
mocha: false
@charrismatic
charrismatic / README.md
Last active June 25, 2019 10:18
Styleguide Template Template

Styleguide Template Template

Template for Styleguide Template

A Pen by Matt Harris on CodePen.

License.

A simple single-page styleguide template to get started with theming and/or documenting your styles.

@charrismatic
charrismatic / ansi-color.php
Created April 10, 2018 22:53 — forked from superbrothers/ansi-color.php
ANSI color terminal output module for php
<?php
/**
* php-ansi-color
*
* Original
* https://github.com/loopj/commonjs-ansi-color
*
* @code
* <?php
* require_once "ansi-color.php";
@charrismatic
charrismatic / wp_config_template.php
Last active April 10, 2018 18:56
Advanced Wordpress WP-Config.php Template
<?php
/**
* Custom WordPress configurations on "wp-config.php" file.
*
* This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more.
* For more information visit {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} Codex page.
* Created using {@link http://generatewp.com/wp-config/ wp-config.php File Generator} on GenerateWP.com.
*
* @package WordPress
* @generator GenerateWP.com
@charrismatic
charrismatic / README.md
Created April 3, 2018 23:51 — forked from hofmannsven/README.md
Using a dynamic admin body class within WordPress to distinguish between light or dark admin interface.
@charrismatic
charrismatic / cycle.html
Created August 9, 2017 15:44
Cycle things with javascript
<i>1</i>
<i>2</i>
<i>3</i>
<i>4</i>
<i>5</i>
<i>6</i>
@charrismatic
charrismatic / css_stats
Created July 29, 2017 19:19
CSS Specificity Statisctics
// A SCRIPT TO SUMMARIZE DATA ABOUT CSS BEING GENERATED BY NPM SPECIFICITY GRAPH
// https://www.npmjs.com/package/specificity-graph
// arry stats helpers.
//https://gist.github.com/Daniel-Hug/7273430
var arr = {
max: function(array) {
return Math.max.apply(null, array);
},
@charrismatic
charrismatic / README.md
Last active July 19, 2017 01:31 — forked from JoelBesada/README.md
Backtick Example Command

Backtick is a customizable command command pallete for chrome letting you run your own javascript snippets easily in a live browsing session.

Backtick

To createa a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

@charrismatic
charrismatic / atom.md
Last active July 14, 2017 04:04
Atom Notes

Atom Features and Todo Items:

Atom Toolbar Requirements

  • run terminal commands from atom
  • vagrant actions [ db snapshot, db import, magento debug on/off]
  • open key folders (BOOKMARKS)
  • dropdown terminal
  • open current in file exploer
  • manage projects config
  • beautify - formatting
# COUNT FILES IN SUB DIRECTORIES
find . -maxdepth 1 -mindepth 1 -type d | while read dir; do
printf "%-25.25s : " "$dir"
find "$dir" -type f | wc -l
done