Skip to content

Instantly share code, notes, and snippets.

View madmoizo's full-sized avatar

madmoizo madmoizo

View GitHub Profile
@rjozefowicz
rjozefowicz / readme.md
Last active October 20, 2024 16:15
Paged.js demo + Puppeteer

HTML to export - includes Paged.js polyfill:

<!DOCTYPE HTML>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script>
</head>
@msikma
msikma / rfc5646-language-tags.js
Created February 26, 2015 13:51
RFC 5646 Language Tags
// List of language tags according to RFC 5646.
// See <http://tools.ietf.org/html/rfc5646> for info on how to parse
// these language tags. Some duplicates have been removed.
var RFC5646_LANGUAGE_TAGS = {
'af': 'Afrikaans',
'af-ZA': 'Afrikaans (South Africa)',
'ar': 'Arabic',
'ar-AE': 'Arabic (U.A.E.)',
'ar-BH': 'Arabic (Bahrain)',
'ar-DZ': 'Arabic (Algeria)',