Get names of all geotagged photos with Exiftool:
find . -type f -exec sh -c "exiftool {} -GPSLatitude | grep 'GPS' 2>&1 >/dev/null" \; -print >> withgps.txt
Move them to another directory:
cat withgps.txt | xargs -I '{}' mv {} with_gps/
void main() async { | |
try { | |
await Future(() { | |
Future(() { | |
throw 'foo'; | |
}); | |
print('future completed'); | |
}); | |
} catch (e) { |
Get names of all geotagged photos with Exiftool:
find . -type f -exec sh -c "exiftool {} -GPSLatitude | grep 'GPS' 2>&1 >/dev/null" \; -print >> withgps.txt
Move them to another directory:
cat withgps.txt | xargs -I '{}' mv {} with_gps/
#!/usr/bin/env bash | |
set -euo pipefail | |
curl https://sh.rustup.rs -sSf | sh -s - -y | |
export PATH=$HOME/.cargo/bin:$PATH | |
cargo install wasm-pack |
#![allow(dead_code)] | |
// Using Rust without NLL (2015 edition) | |
// Playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2015&gist=b30d40f9558112878ba526cbaa6b27fc | |
fn consume<T>(_: T) {} | |
struct SimpleStruct {} | |
fn borrow_simple(_: &SimpleStruct) -> SimpleStruct { |
# Drop this file into GitLab repos containing a Dockerfile at the root | |
image: docker:1.12.3 | |
variables: | |
IMAGE_TAG: $CI_REGISTRY_IMAGE | |
before_script: | |
- docker info | |
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY |
build-depends: base >= 4.7 && < 5 | |
, base16-bytestring | |
, bytestring | |
, cryptohash-md5 |
package main | |
// This file attempts to simulate trasactions, that can be used to run tasks in a chain and | |
// rollback everything if the chain fails. For example, this can be used to simulate a database | |
// transaction to clean up dirty data. | |
// While I am aware that this abstraction is not truely a atomic transaction as it does not | |
// obtain locks on the affected objects, it is sufficient for our use cases to cleanup dirty data | |
const txLogTag = "transaction" |
# frozen_string_literal: true | |
# This class creates a object which behaves like a hash, except that it also | |
# responds to hash keys sent as messages. We need this type for GraphQL | |
# because the Gem sends messages to our objects instead of accessing it with | |
# `:[]`. | |
# | |
# It also performs type checking based on a type provided to the shape: | |
# | |
# === Example === | |
# |
wget -r -N http://people.csail.mit.edu/tlp/AI_SUTD_WWW/ |
I hereby claim:
To claim this, I am signing this object: