This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Grunt Sitemap Generator | |
* Plugin URI: http://www.github.com/lgladdy | |
* Description: Generate a JSON list of every page on a site so it can be used with grunt and uncss. Create a folder in /wp-content called mu-plugins, and drop this code into that folder, as grunt-sitemap.php | |
* Author: Liam Gladdy | |
* Author URI: http://gladdy.co.uk | |
* Version: 1.0 | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function first_character() { | |
var str = document.getElementsByClassName("text") | |
for (var i = 0; i < str.length; i++) { | |
str[i].innerHTML = str[i].innerHTML.replace(/\b[a-z0-9]/gi, "<span class='first-char'>$&</span>") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is my default template for a test with PhantomCSS | |
/* | |
Require and initialise PhantomCSS module | |
Paths are relative to CasperJs directory | |
*/ | |
var fs = require( 'fs' ); | |
var path = fs.absolute( fs.workingDirectory + '/phantomcss.js' ); | |
var phantomcss = require( path ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to build your custom Nginx | |
============================== | |
Works fine for me with Ubuntu 16.04. | |
Automated Install with pagespeed module (Google) | |
------------------------------------------------ | |
If you interested, read the original | |
Source: https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"use": [ | |
"postcss-import", | |
"postcss-mixins", | |
"postcss-nested", | |
"postcss-advanced-variables", | |
"perfectionist", | |
"stylefmt", | |
"postcss-cssnext", | |
"cssnano" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
HHVMinfo - phpinfo page for HHVM HipHop Virtual Machine | |
Author: _ck_ | |
License: WTFPL, free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
Version: 0.0.6 | |
* revision history | |
0.0.6 2014-08-02 display fix for empty vs zero | |
0.0.5 2014-07-31 try to determine config file from process command line (may not always work), style improvements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
mysql: | |
image: mysql:latest | |
volumes: | |
- ./data/db:/var/lib/mysql | |
restart: always | |
ports: | |
- 3306:3306 | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"dependencies": { | |
"chokidar": "^1.7.0", | |
"chokidar-cli": "^1.2.0", | |
"cssnano": "^3.10.0", | |
"perfectionist": "^2.4.0", | |
"postcss-advanced-variables": "^1.2.2", | |
"postcss-cli": "^4.1.0", | |
"postcss-cssnext": "^3.0.0", | |
"postcss-mixins": "^6.0.1", | |
"postcss-nested": "^2.0.2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var bs = require('browser-sync').create(); | |
bs.init({ | |
proxy: { | |
target: 'https://localhost' | |
}, | |
files: [ | |
'build/**/*', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
map: { inline: false }, | |
plugins: [ | |
require('postcss-import')(), | |
require('postcss-mixins')(), | |
require('postcss-nested')(), | |
require('postcss-advanced-variables')(), | |
require('perfectionist')({ | |
cascade: false, | |
sourcemap: true |
OlderNewer