Skip to content

Instantly share code, notes, and snippets.

View natedunn's full-sized avatar

Nate Dunn natedunn

View GitHub Profile
@natedunn
natedunn / .pretterrc
Created January 5, 2022 20:29
Historic Prettier Config
{
“trailingComma”: “es5",
“tabWidth”: 2,
“semi”: true,
“singleQuote”: true,
“jsxSingleQuote”: true,
“bracketSpacing”: true,
“jsxBrackets”: true,
“printWidth”: 80,
“proseWrap”: “preserve”,
@natedunn
natedunn / copy-file-from-to.json
Last active January 24, 2019 20:28 — forked from zkat/index.js
Press / Tailwind
{
"copyFiles": [
{
"from": "node_modules/press-css/index.html",
"to": "index.html"
}
]
}
@natedunn
natedunn / index.js
Created January 24, 2019 18:46
index.js
thing
@natedunn
natedunn / import.php
Last active October 14, 2018 18:09
Wordpress global import function
<?php
function import($file_path, $args = array())
{
$did_wp_head_fire = did_action('wp_head');
$output = null;
$npm_path = TEMPLATEPATH . '/node_modules/' . $file_path;
// Check file
if (!file_exists($file_path) && !file_exists($npm_path)) {
trigger_error('File not found.', E_USER_WARNING);