Skip to content

Instantly share code, notes, and snippets.

View triplingual's full-sized avatar

Trip Kirkpatrick triplingual

  • Yale University Library
  • New Haven, CT
View GitHub Profile
@markmarkoh
markmarkoh / gist:2969317
Created June 21, 2012 23:55
World Map Geo JSON data
var countries_data = {"type":"FeatureCollection","features":[
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[74.92,37.24],[74.57,37.03],[72.56,36.82],[71.24,36.13],[71.65,35.42],[71.08,34.06],[69.91,34.04],[70.33,33.33],[69.51,33.03],[69.33,31.94],[66.72,31.21],[66.26,29.85],[62.48,29.41],[60.87,29.86],[61.85,31.02],[60.84,31.5],[60.58,33.07],[60.94,33.52],[60.51,34.14],[61.28,35.61],[62.72,35.25],[63.12,35.86],[64.5,36.28],[64.8,37.12],[66.54,37.37],[67.78,37.19],[69.32,37.12],[70.97,38.47],[71.59,37.9],[71.68,36.68],[73.31,37.46],[74.92,37.24]]]]},"properties":{"name":"Afghanistan"},"id":"AF"},
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[19.44,41.02],[19.37,41.85],[19.65,42.62],[20.07,42.56],[20.59,41.88],[20.82,40.91],[20.98,40.86],[20.01,39.69],[19.29,40.42],[19.44,41.02]]]]},"properties":{"name":"Albania"},"id":"AL"},
{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[2.96,36.8],[8.62,36.94],[8.18,36.52],[8.25,34.64],[7.49,33.89],[9.06,3
@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@magicznyleszek
magicznyleszek / jekyll-and-liquid.md
Last active September 16, 2024 18:47
Jekyll & Liquid Cheatsheet

Jekyll & Liquid Cheatsheet

A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.

Running

Running a local server for testing purposes:

@niqdev
niqdev / rename-branch-github.txt
Last active January 15, 2020 18:17
Rename local and remote branch on GitHub
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@shawngraham
shawngraham / intro-text-analysis-topic-modelling.md
Created February 6, 2016 03:25
homework exercise to accompany guest lecture to historian's craft class feb 8 2016 carleton u
title author date
A Gentle Introduction to Text Analysis and Topic Modeling
Shawn Graham
February 3rd, 2016

Introduction

So much data has been made available online for historians - everything from court trials (The Old Bailey Online) to newspaper articles (Scissors and Paste), to all 71 volumes of the Jesuit Relations, to over 3.9 million tweets sent during the last election (Ian Milligan & Nick Ruest).

How do we begin to deal with this data? We do it the same way we do with all of our historical information: we consider its context and the patterns we find within it. Happily, we don't have to do this alone: we can 'not read' this information and see what patterns stand out. In a way, it's a bit like those 'magic-eye' cartoons the newspapers used to print. If you squinted the right way, p

@woodwardtw
woodwardtw / get_derelicts.php
Last active March 3, 2016 19:17
wordpress multisite query to get the 50 blogs that have gone the longest without being updated
<?php
global $wpdb;
$results = $wpdb->get_results( 'SELECT * FROM wp_blogs ORDER BY last_updated ASC LIMIT 50', ARRAY_A);//change how many you want back here
//var_dump($results);
echo '<table>';
foreach ( $results as $site )
{
@anythingcodes
anythingcodes / google-form-to-github-issue.md
Last active August 9, 2024 11:32
Generate GitHub Issue from Google Form submission

Generate GitHub Enterprise Issue from Google Form submission

To generate a nicely-formatted GitHub issue (even for GitHub Enterprise accounts) from a Google Form submission, you can use Google's script editor along with a GitHub personal access token that connects to the API. This is particularly useful when you need to triage bugs or feature requests directly to developers, but those who are submitting issues do not have access to your GitHub Enterprise instance.

Once this is up and running, on the development end, you can do some cool things within the body of each issue, like automatically closing GitHub issues via your commit messages and CCing your dev group or individual team members for each issue.

Here's how to set it up.

Step 1: Create Your Form

  • Go to Google Drive and create a form with fields
  • Click the Responses tab
@mejackreed
mejackreed / LICENSE.txt
Last active June 3, 2016 14:43
Leaflet-IIIF Magnifying Glass Example
MIT License
Copyright (c) 2016 Jack Reed
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@rsimon
rsimon / webanno_example.md
Last active November 21, 2019 14:31
Recogito IIIF + WebAnno example
@jamesperrin
jamesperrin / github-labels-export.js
Last active October 2, 2024 14:36
JavaScript file for exporting GitHub labels to a JSON object.
/*
Purpose: Export the configuration settings for GitHub Labels.
(c) James Perrin, MIT License, https://www.countrydawgg.com, | @jamesperrin
Exporting Instructions:
1. Open a web browser.
2. Navigate to the desired GitHub repository.
3. Navigate to Issues tab.