Idea: grunt-contrib-imagemin as a Service
- nginx
- luajit
- imagemagick
- OptiPNG, pngquant, jpegtran and gifsicle
########### | |
# Variables | |
########### | |
variable "aws_key_name" { | |
default = "mykeypair" | |
} | |
variable "region" { | |
default = "eu-west-1" | |
} |
var child_process = require('child_process'); | |
exports.handler = function(event, context) { | |
var proc = spawn('./test', [ JSON.stringify(event) ], { stdio: 'inherit' }); | |
proc.on('close', function(code){ | |
if(code !== 0) { | |
return context.done(new Error("Process exited with non-zero status code")); | |
} |
[self.apiClient retrieveConnectedServicesWithSuccessBlock:^(NSDictionary *services) { | |
NSArray *facebookTokens = services[@"facebook"]; | |
if (facebookTokens.count == 0) { | |
return; | |
} | |
NSDictionary *mostRecentFacebookTokenDict = facebookTokens[0]; | |
NSNumber *refreshTimeNumber = mostRecentFacebookTokenDict[@"refreshTime"]; | |
NSDate *refreshDate = [NSDate dateWithTimeIntervalSince1970:[refreshTimeNumber doubleValue]]; |
Idea: grunt-contrib-imagemin as a Service
disable_flush
and disable_recovery
(TD).DS_Store |
curl -XDELETE 'http://localhost:9200/test-idx' | |
echo | |
curl -XPUT 'http://localhost:9200/test-idx' -d '{ | |
"mappings": { | |
"article": { | |
"properties": { | |
"a": { | |
"type": "integer" | |
}, | |
"b": { |
// Using the Modular Scale plugin along with Compass Vertical Rhythms module. | |
// The goal is to use MS to give us the values, | |
// and use VR to apply those values to our typography. | |
// --------------------------------------------------------------------------- | |
// Defaults | |
$base-size: 24px; | |
$ratio: major-third() fifth(); |
#!/usr/bin/python | |
""" | |
Run this with something like iostat -nx 60 2 | iostat_to_graphite.py | |
""" | |
import sys, os, re, socket, time | |
"""ARGF from Ruby in Python. | |
Released into the public domain by Andrew Gwozdziewycz, 2010 | |
""" |