This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'yaml' | |
puts "Checking Kubernetes templates for annotation mismatches..." | |
blacklist = %w(kubernetes/app_server.yml kubernetes/console.yml) | |
templates = Dir.glob("kubernetes/*.yml") - blacklist | |
template_vars = {} | |
reference_vars = [] | |
errors = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert_timestamp | alert_timestamp_dt | |
---|---|---|
update_timestamp | update_timestamp_dt | |
format | format | |
subformat | subformat_s | |
superformat | superformat_s | |
format_orig | format_orig_s | |
cluster_ids | cluster_id_ss | |
pub_date | pub_date_tis | |
pub_date_sort | pub_date_tsort | |
titles | title_ts |
Computing and Visualizing the 19th-Century Literary Genome, Jockers, MatthewContent analysis of 150 years of British periodicals, doi: 10.1073/pnas.1606380114- Quantitative Analysis of Culture Using Millions of Digitized Books DOI: 10.1126/science.1199644
- Mass digitization and the garbage dump: The conflicting needs of quantitative and qualitative methods
- Mining semantics for culturomics: Towards a knowledge-based approach
- Quantitative Analysis and Literary Studies
Probabilistic Topic Decomposition of an Eighteenth-Century American Newspaper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import pandas | |
from ggplot import * | |
import numpy | |
response_vals = [] | |
with open('report.csv', 'r') as csvfile: | |
reader = csv.reader(csvfile, delimiter=';') | |
for row in reader: | |
response_vals.append(float(row[0])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
require 'net/http' | |
require 'colorize' | |
require 'open-uri' | |
require 'zlib' | |
class SitemapCheck | |
def initialize(basemap) | |
@root_target = basemap | |
@log = 'sitemap.log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var square = new Object(); | |
square.sideLength = 6; | |
square.calcPerimeter = function() { | |
return this.sideLength * 4; | |
}; | |
// help us define an area method here | |
square.calcArea = function(){ | |
return this.sideLength * this.sideLength; | |
}; | |
var p = square.calcPerimeter(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule FizzBuzz do | |
def write(i) when (rem(i, 3) == 0 and rem(i, 5) == 0) do | |
IO.puts "FizzBuzz" | |
end | |
def write(i) when rem(i, 3) == 0 do | |
IO.puts "Fizz" | |
end | |
def write(i) when rem(i, 5) == 0 do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Sofia's javascript playground</title> | |
<style> | |
h1 { |
NewerOlder