A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
- Headers
- Links
- Bold
#!/bin/bash | |
[[ -n "${1}" ]] || { echo "Usage: oicr.sh IA_BOOK_TITLE"; exit 0 ; } | |
# sample record ids: catalogueoflepid02briti electronicnaviga00unit halfhoursinfarno00newy nachrichtsblattd3234190012deut | |
BOOK=${1} | |
#BASEURL=http://cluster.biodiversitylibrary.org | |
BASEURL=http://www.archive.org/download |
#!/bin/bash | |
DATE=`date +%Y%m%d` | |
TARGET_PATH=/home/phil/Dropbox/Public | |
WWW_USER=www-data | |
WWW_GROUP=www-data | |
WWW_PATH=/var/www/data | |
if [ ! -d ${WWW_PATH} ]; then | |
mkdir -p ${WWW_PATH} | |
chown -R ${WWW_USER}:${WWW_GROUP} ${WWW_PATH} |
// REFERENCE UNICODE TABLES: | |
// http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml | |
// http://www.tamasoft.co.jp/en/general-info/unicode.html | |
// | |
// TEST EDITOR: | |
// http://www.gethifi.com/tools/regex | |
// | |
// UNICODE RANGE : DESCRIPTION | |
// | |
// 3000-303F : punctuation |
FUSEDIR=/home/lindenb/tmp/FUSE | |
CFLAGS= -D_FILE_OFFSET_BITS=64 -I $(FUSEDIR)/include -Wall | |
LDFLAGS=-L $(FUSEDIR)/lib | |
all:test | |
test:fusetaxonomy nodes.dmp names.dmp | |
rm -f /tmp/jeter.txt | |
mkdir -p tmp_fuse | |
./fusetaxonomy nodes.dmp names.dmp tmp_fuse | |
-ls tmp_fuse | |
-ls tmp_fuse/root/ |
<?php | |
// register at http://dev.mendeley.com/applications/ | |
define('MENDELEY_CONSUMER_KEY', ''); // edit this | |
class Mendeley { | |
static function fetch($path, $params = array()) { | |
$default = array('consumer_key' => MENDELEY_CONSUMER_KEY); | |
$url = 'http://api.mendeley.com/oapi/' . $path . '?' . http_build_query($params + $default); | |
return json_decode(file_get_contents($url), true); |
A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
license: gpl-3.0 | |
redirect: https://observablehq.com/@mbostock/world-tour |
curl -XDELETE 'localhost:9200/jsonld' | |
curl -XPOST 'localhost:9200/jsonld' | |
curl -XPUT 'localhost:9200/jsonld/doc/1' -d ' | |
{ | |
"@context": | |
{ | |
"dc": "http://purl.org/dc/elements/1.1/", |
Title: eLife Lens - A novel way of seeing content
Working with digital documents used to be hard because for the most part, they come in presentation-centric formats, optimized for print and having the same display across multiple devices. Ultimately, the display of these documents had been preserved to ultimately allow the user to print the exact same document across any device. Content today, however, is no longer being printed out readily; instead, it is read on a variety of platforms spanning computers and mobile devices. The limitations presented by different screen sizes, the lack of tactile feedback that comes from flipping between pages and inability to purely focus on the author’s arguments are problems present in all disciplines.
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |