Metadata in PDF files can be stored in at least two places:
- the Info Dictionary, a limited set of key/value pairs
- XMP packets, which contain RDF statements expressed as XML
## Markus Gesmann, February 2012 | |
## This R script requires the googleVis package, | |
## a browser with Flash and an Internet connection. | |
gvisWeeklyStockData <- function(tckr = "AAPL", | |
chartid ="Apple", | |
start.year=1984){ | |
require(googleVis) | |
d <- Sys.time() |
@mixin no-select { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} |
This is an example of how to scaffold API endpoints to list / get / create / update / delete Posts in a Keystone website.
It's a modification of the default project created with the yo keystone
generator (see https://github.com/JedWatson/generator-keystone)
Gists don't let you specify full paths, so in the project structure the files would be:
routes-index.js --> /routes/index.js // modified to add the api endpoints
routes-api-posts.js --> /routes/api/posts.js // new file containing the Post API route controllers
I'm setting up a new Mac. I'm using this Gist to keep track of the software I install (roughly in order, in case it's useful later.
// A global file to provide the countries and cities | |
exports.countries = [{ | |
name: 'Australia', | |
cities: ['Melbourne', 'Sydney', 'Canberra'] | |
}, { | |
name: 'España', | |
cities: ['Madrid', 'Barcelona', 'Sevilla'] | |
}, { | |
name: 'Italia', |
var gulp = require('gulp'); // Gulp! | |
var sass = require('gulp-sass'); // Sass | |
var prefix = require('gulp-autoprefixer'); // Autoprefixr | |
var minifycss = require('gulp-minify-css'); // Minify CSS | |
var concat = require('gulp-concat'); // Concat files | |
var uglify = require('gulp-uglify'); // Uglify javascript | |
var svgmin = require('gulp-svgmin'); // SVG minify | |
var imagemin = require('gulp-imagemin'); // Image minify | |
var rename = require('gulp-rename'); // Rename files |
The UK Houses of Parliament netblocks are publicly listed:
https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=194.60.0.0%20-%20194.60.63.255 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=82.111.122.128%20-%2082.111.122.135 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=82.111.119.192%20-%2082.111.119.199 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=82.111.126.144%20-%2082.111.126.159 https://apps.db.ripe.net/db-web-ui/lookup?source=RIPE&type=inetnum&key=212.161.99.0%20-%20212.161.99.7
They were unwilling to reveal the UK parliament web proxies in an FOI request, so here's the list of every IP address that has made a Wikipedia edit from the UK parliament netblocks. Guess the proxies.
This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form>
following the example by Martin Hawksey
Depreciation Warning: This code is not maintained, and should be seen as reference implementation only. If you're looking to add features or update, fork the code and update as needed.
You should be able to just open index.html
in your browser and test locally.