Skip to content

Instantly share code, notes, and snippets.

View jchck's full-sized avatar

justin chick jchck

  • Brooklyn, NY
View GitHub Profile
@jchck
jchck / json
Created March 27, 2019 13:59
VS Code Settings
{
"workbench.colorTheme": "Cobalt2",
"editor.fontSize": 17,
"editor.fontFamily": "'Fira Code'",
"editor.fontLigatures": true,
"editor.detectIndentation": false,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"editor.wordWrapColumn": 90,
"workbench.statusBar.feedback.visible": false,
<?php echo get_template_directory_uri(); ?>/folder1/folder2/picture.png
/*This gives you a kinda wonky shape*/
#stuff{
-moz-border-radius: 1em 4em 1em 4em;
border-radius: 1em 4em 1em 4em;
-o-border-radius: 1em 4em 1em 4em;
}
/*This gives you an oval shape*/
#stuff{
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-o-border-radius: 15px;
}
@jchck
jchck / wp-template-url.php
Created October 23, 2012 20:55
Get WP template url
<?php echo get_template_directory_uri(); ?>
@jchck
jchck / plugin.php
Created October 23, 2012 16:31
WP Plugin
<?php
/*
Plugin Name:JustinChick Setup
Plugin URI: http://justinchick.com
Description:Set up custom functions for all Justin's sites, yay!
Version: 1.0
Author: Justin Chick
Author URI: http://justinchick.com
*/
/*Add Content After This*/
var map;
$(document).ready(function(){
map = new GMaps({
div: '#map-canvas',
zoom: 5,
lat: 38.636206,
lng: -90.246758,
scrollwheel: false,
panControl: false,
streetViewControl: false,
{
"name": "roots",
"version": "7.0.0",
"author": "Ben Word <ben@benword.com>",
"homepage": "http://roots.io",
"repository": {
"type": "git",
"url": "git://github.com/roots/roots.git"
},
"bugs": {
/**
* @link http://cfxdesign.com/remove-unused-css-from-wordpress-automatically-with-grunt
*/
function show_sitemap() {
if(WP_ENV === 'development' && isset($_GET['show_sitemap'])) {
$the_query = new WP_Query(array('post_type' => 'any', 'posts_per_page' => '-1', 'post_status' => 'publish'));
$urls = array();
while($the_query->have_posts()) {
$the_query->the_post();
$urls[] = get_permalink();
@jchck
jchck / gruntfile.js
Created June 16, 2015 17:02
Gruntfile.js with Uncss
'use strict';
module.exports = function(grunt) {
// Load all tasks
require('load-grunt-tasks')(grunt);
// Show elapsed time
require('time-grunt')(grunt);
var jsFileList = [
'assets/js/plugins/bootstrap/transition.js',
//'assets/js/plugins/bootstrap/alert.js',