https://ldnwebperf.org/events/caches-all-the-way-down/
(kind of Chromium specific here and there)
- rendering process specific, short-lived
- strict matching, same resource type, etc, CSP
- everything (even
no-cache, except forno-store)
| #! /bin/bash | |
| # The Purpose of this Script is to batch convert and compress any video file to mp4 format | |
| # | |
| # WARNING: LOSSY COMPRESSION !!! | |
| # Variable used: | |
| # sourcedir is the directory where to be converted videos are. Converted video will be saved in the same folder | |
| # usage: |
https://ldnwebperf.org/events/caches-all-the-way-down/
(kind of Chromium specific here and there)
no-cache, except for no-store)Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
I freaking love working with technologies like Gulp, and wanted to share how to get my current Craft front-end workflow set up. With a few tweaks, this can also be used with virtually any other sites (I've used it with Laravel, static sites, ExpressionEngine, etc).
| (function () { | |
| var perfBar = function(budget) { | |
| window.onload = function() { | |
| window.performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {}; | |
| var timing = window.performance.timing, | |
| now = new Date().getTime(), | |
| output, loadTime; |
$ npm init & Fill in relevant details (you can just hit enter a few times)$ npm install grunt --save-dev - install grunt into node_modules folder$ npm install grunt-wordpress-deploy --save-dev - install grunt wordpress deploy into node_modules folderpath: lines need to have a trailing slash / (lines 37 & 46)grunt push_files --target=production| <figure> | |
| <?php | |
| $image = get_field('your_image_field_name'); | |
| $atts = array( | |
| 'imageid' => $image, | |
| 'size1' => '0', | |
| 'size2' =>'600', | |
| 'size3' =>'1000' | |
| ); | |
| echo tevkori_responsive_shortcode($atts) ; ?> |
| On server | |
| ----------------- | |
| # make a git repo | |
| $ mkdir /path/to/repo.git | |
| $ cd /path/to/repo.git | |
| $ git init --bare | |
| # make a post-receive hook | |
| # see the post-receive file in this Gist | |
| # if you're using Node.js |
| // Failover to PNG if browser can’t hack SVG | |
| if(!Modernizr.svg) { | |
| $('img').each(function(){ | |
| this.src = this.src.replace('svg', 'png'); | |
| }); | |
| } |
import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')
From here on out, use Package Control to install everything. ⌘+Shift+P, then type Install to get a list of installable packages you can 'livesearch through. After installing plugins, they should be running.