THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
#!/usr/bin/env bash | |
#### | |
# Invoke with | |
# $ bash_colours [limit] | |
### | |
if hash tput >/dev/null 2>&1; then | |
bound=${1:-255} | |
for (( i = 0; i < bound; i++ )); do |
;; This is at: https://gist.github.com/8655399 | |
;; So we want a rhyming dictionary in Clojure. Jack Rusher put up | |
;; this code here: | |
;; | |
;; https://gist.github.com/jackrusher/8640437 | |
;; | |
;; I'm going to study this code and learn as I go. | |
;; | |
;; First I put it in a namespace. |
// 1. create a new bookmark on your browser | |
// 2. paste the following code - starting at "javascript:" into the URL part of the add-bookmark menu. | |
// 3. go to http://www2.warnerbros.com/spacejam/movie/jam.htm | |
// 4. click the bookmark for automatic space jam 2 | |
// xoxo j$ | |
javascript:(function(){document.getElementsByTagName("html")[0].innerHTML=document.getElementsByTagName("html")[0].innerHTML.replace(/1996/g,"2014");var images=document.getElementsByTagName("img");var length=images.length;while(length--){if(images[length].src=="http://www2.warnerbros.com/spacejam/movie/img/p-jamlogo.gif"){images[length].src="http://f.cl.ly/items/1a10103W3Z010W192n23/p-jamlogo.png"}}}()); |
'.text.html.twig': | |
'Tag Print': | |
'prefix': '}}' | |
'body': '{{ $1 }}$0' | |
'Tag Block': | |
'prefix': '%%' | |
'body': '{% $1$2 %}$0{% end$1 %}' | |
'Tag Block (Block)': |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var jshint = require('gulp-jshint'); | |
// Command line option: | |
// --fatal=[warning|error|off] | |
var fatalLevel = require('yargs').argv.fatal; | |
var ERROR_LEVELS = ['error', 'warning']; |
Let Google cache and resize your images.
Resized and Cached:
Original:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Copyright (C) 2014 ADDY OSMANI <addyosmani.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
Let’s leave aside, for now, the fact that you’ve changed web standards. You’ve been a participant in the first time—in the history of the web, far as I know—that the web development community has taken a feature from an initial proposal to the funding of an honest-to-God native implementation.
Instead, I want you to focus on this: say only ten developers use a native responsive images solution to reduce the weight of just one page apeice by only 500kb, and each of those pages has a barely-significant 5,000 hits per month: those users have been saved almost 24GB of data. A thousand pages saving 500kb apeice, and we’ve saved users an entire terabyte in a month. Now expand that to the entire industry: every web developer; every hit on every page that would otherwise carry with it a huge, wasteful image request, saving megabytes at a time. To those users, the only change is that the web is faster, less expensive, more accessible. For those users, the web is just better.
In helping make the picture
element
<?php | |
c::set('routes', array( | |
array( | |
'pattern' => 'projects/old-project-url-for-project-a', | |
'action' => function() { | |
go('projects/project-a'); | |
} | |
), | |
array( |