The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: October 8th 2015
- Original post
{ | |
"name": "project-name", | |
"description": "project description", | |
"author": "Matt Banks <[email protected]>", | |
"version": "1.0.0", | |
"repository": { | |
"type": "git", | |
"url": "project-url-here" | |
}, | |
"scripts": { |
# EditorConfig coding styles definitions. For more information about the | |
# properties used in this file, please see the EditorConfig documentation: | |
# http://editorconfig.org/ | |
# indicate this is the root of the project | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf |
module.exports = { | |
// collectCoverage: true, | |
// collectCoverageFrom: [ | |
// 'app/**/*.js' | |
// ], | |
testResultsProcessor: 'jest-junit', | |
}; |
{ | |
"extends": [ | |
"airbnb-base", | |
"prettier" | |
], | |
"parserOptions": { | |
"ecmaVersion": 8, | |
"ecmaFeatures": { | |
"classes": true | |
} |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 14, | |
// font family with optional fallbacks |
/* ========================================================================== | |
Grid | |
========================================================================== */ | |
$pad: 20px; | |
.grid { | |
margin: 0 0 $pad 0; | |
@include clearfix(); | |
} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
// Get any existing copy of our transient data | |
if ( false === ( $%filltext:name=Query Name:default=myquery% = get_transient( '%filltext:name=Query Name:default=myquery%' ) ) ) { | |
// It wasn't there, so regenerate the data and save the transient | |
$%filltext:name=Query Name:default=myquery%_args = array( | |
'post_type' => '%filltext:name=Post Type:default=post%', | |
'order' => '%fillpopup:name=Order:default=ASC:DESC%', | |
'orderby' => '%fillpopup:name=Orderby:default=date:ID:rand:title:author:menu_order%', | |
'post_status' => 'publish', | |
'posts_per_page' => %filltext:name=Posts Per Page:default=-1% |
<?php global $wp_query; | |
query_posts( | |
array_merge( | |
$wp_query->query, | |
array( | |
'orderby' => 'post_date', | |
'order' => 'desc' | |
) | |
) | |
); |