Skip to content

Instantly share code, notes, and snippets.

View Ramona2020's full-sized avatar

Ramona Ramona2020

View GitHub Profile
@Ramona2020
Ramona2020 / Code Block 7
Created April 3, 2015 14:32
Code for revised index.html
---
layout: default
title: Working With GitHub Pages
---
<div class="container">
<div class="blurb">
<h1>Working With GitHub Pages</h1>
<p>During today's session, we will learn how to build a personal website using GitHub Pages. <a href="/about">Learn about Git, GitHub, and GitHub Pages</a></p>
</div><!-- /.blurb -->
@Ramona2020
Ramona2020 / Code Block 8
Created April 3, 2015 14:34
Code for post.html
---
layout: default
---
<h1>{{ page.title }}</h1>
<p class="meta">{{ page.date | date_to_string }}</p>
<div class="post">
{{ content }}
</div>
@Ramona2020
Ramona2020 / Code Block 9
Created April 3, 2015 14:36
Code for blog post
---
layout: post
title: My First Post
date: 2015-04-03
---
Write something about your experience in this workshop.
@Ramona2020
Ramona2020 / Code Block 10
Created April 3, 2015 14:38
Code for blog index.html
---
layout: default
title: GitHub Pages Blog
---
<h1>{{ page.title }}</h1>
<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
{% endfor %}
@Ramona2020
Ramona2020 / Code block 11
Created April 3, 2015 14:40
Code to customize blog URL
permalink: /blog/:year/:month/:day/:title
@Ramona2020
Ramona2020 / Code Block 12
Created April 3, 2015 14:43
Code for rss feed
---
layout: feed
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>GitHub Pages Blog</title>
<link href="http://ramona2020.github.io/blog/atom.xml" rel="self"/>
<link href="http://ramona2020.github.io/blog"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
@Ramona2020
Ramona2020 / Abel et Cain TEI
Created April 10, 2015 22:44
Abel et Cain TEI
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml"
schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<!--In the line below, insert the title of the poem. If the poem begins with an article, remove leading article from the title in the element value - and include the complete title in a rend attribute.-->
<title>Abel et Caïn</title>
Converting files in Windows folder
[http://www.windows-commandline.com/rename-file-extensions-bulk/](http://www.windows-commandline.com/rename-file-extensions-bulk/)
rename *.log *.txt
Convert batch of files in Pandoc
for /r "startfolder" %i in (*.htm *.html) do pandoc -f html -t markdown "%~fi" -o "%~dpni.txt"
Batch delete files from Windows folder
1. Navigate to folder and use command line:
del /S *.html
@Ramona2020
Ramona2020 / test.md
Created January 21, 2016 16:15
Markdown Test

Hello

This is a test of the emergency broadcasting system

@Ramona2020
Ramona2020 / Single-Feature.xq
Last active February 12, 2016 18:44
Single Feature
let $uri := fn:encode-for-uri( "http://bioimages.vanderbilt.edu/vanderbilt/7-314#2002-06-14")
let $json := fetch:text("http://api.gbif.org/v1/occurrence/search?occurrenceID=" || $uri)
let $json := fn:parse-json($json)
let $latitude := $json?results?1?decimalLatitude
let $longitude := $json?results?1?decimalLongitude
let $identifier := $json?results?1?identifier
return map {
"type": "Feature",
"geometry": map {
"type": "Point",