Time | Description |
---|---|
0:13:04 | Land of Hope and Dreams (Bruce Springsteen) |
0:19:43 | Excerpts from Previous Inaugural Addresses:, Lincoln's Second (Kareem Abdul-Jabbar), FDR's First (Dolores Huerta), JFK (Brayden Harrington), Reagan's First (Kim Ng) |
0:22:22 | Inauguration Recap (Eva Longoria) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 DeepSort do | |
def sort(x) do | |
case Enumerable.impl_for(x) do | |
nil -> | |
x | |
_ -> | |
x | |
|> Enum.map(fn | |
{k, v} -> {k, sort(v)} |
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
AVR.Restore.restore(bucket, prefix, limit: 200) |
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
#!/usr/bin/env node | |
const AWS = require('aws-sdk'); | |
const Benchmark = require('benchmark'); | |
const fs = require('fs'); | |
const probe = require('probe-image-size'); | |
const sharp = require('sharp'); | |
function * urlGenerator () { | |
const ring = fs.readFileSync('./s3Urls.txt').toString().split(/\n/); |
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
#!/bin/sh | |
echo "Installing libvips dependencies via yum" | |
yum groupinstall -y "Development Tools" | |
yum install -y curl jq \ | |
gtk-doc libxml2-devel libjpeg-turbo-devel libpng-devel libtiff-devel libexif-devel libgsf-devel lcms-devel ImageMagick-devel gobject-introspection-devel libwebp-devel \ | |
libpng-devel libxml2-devel | |
vips_release=$(curl -s https://api.github.com/repos/libvips/libvips/releases | jq -r '.[0]') | |
vips_release_version=$(jq -r '.name' <<< $vips_release) |
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
# Copy file set files for 10 works | |
(AVR.Migration.list_avr_works() | |
|> Enum.group_by(& &1.work_type.id) | |
|> then(fn map -> | |
~w(AUDIO VIDEO) | |
|> Enum.flat_map(fn type -> Map.get(map, type) |> Enum.take(10) end) | |
|> Repo.preload(:file_sets) | |
|> Enum.flat_map(& &1.file_sets) | |
|> Task.async_stream(&AVR.Migration.FileMover.process_file_set_files/1, max_concurrency: , timeout: :infinity) | |
|> Stream.run() |
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
class DOI | |
class Error < StandardError | |
attr_reader :response | |
def initialize(response) | |
@response = response | |
end | |
def to_s | |
"#{response.status} #{response.reason_phrase}\n\t#{response.body}" |
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
from(as in ActionState, join: fs in FileSet, on: fs.id == as.object_id, | |
where: as.outcome == "error", distinct: true, select: fs) | |
|> Repo.all() | |
|> Enum.map(fn file_set -> | |
Meadow.Pipeline.kickoff(file_set, %{overwrite: "false", role: file_set.role.id}) | |
end) |
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
def recommon | |
query = {"size" => 1000, "query"=>{"bool"=>{"must"=>[{"match"=>{"model.name"=>"FileSet"}}], "must_not"=>{"exists"=>{"field"=>"simple_title"}}}}} | |
result = CommonIndexer.client.search(body: query) | |
while result['hits']['hits'].length > 0 | |
result['hits']['hits'].each do |hit| | |
fs = FileSet.find(hit['_id']) | |
fs.update_common_index | |
$stderr.print('.') | |
end |
NewerOlder