- Move all emails older than 7 days to Archive/All Mail
in:inbox older_than:7d -is:starred
- Move all emails you are cc'ed on older than 3 days to Archive/All Mail
cc:me older_than:3d -is:starred
# naive script to read a text file and | |
# extract what look like apa citations from parentheses, | |
# then split them on `;` to pull out groups of citations | |
# and finally write them to a text file. | |
# usage: `python extractor.py ./some-text.txt` | |
import sys | |
import re | |
# Nesting would not work here but could easily be tweaked to do so | |
# other hash methods that return a copy (eg #merge) also need to be reimplemented | |
# OpenStruct already does this too btw | |
class HashObj < SimpleDelegator | |
def method_missing(method_name, *args, &block) | |
if __getobj__.keys.include?(method_name) | |
puts "looking for #{method_name}" | |
__getobj__[method_name] |
in:inbox older_than:7d -is:starred
cc:me older_than:3d -is:starred
" |
trait CartTypes { | |
implicit val ec: ExecutionContextExecutor | |
val itemType: ObjectType[RequestServices, Item] | |
lazy val cartType: ObjectType[Unit, Cart] = ObjectType[RequestServices, Cart]( | |
/* ... */ | |
fields = Field( | |
"items", | |
ListType(ItemType), |
package graphql.models | |
import java.text.DecimalFormat | |
import sangria.validation.ValueCoercionViolation | |
import json.SprayJsonConversions | |
import sangria.macros.derive.{ | |
deriveObjectType, AddFields, ObjectTypeDescription, ObjectTypeName | |
} |
Lots of this is just copied from the relay docs.
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# Start your built mycoolservice image with a bind mount on its source files in your ./myservice folder | |
DIR=$(dirname "$0") # relative | |
ROOT="$( cd "$DIR/.." && pwd )" # root, absolutized and normalized | |
Start the backend (docker) | |
cmd="docker run -p 8000:8000"\ | |
" --mount src=$ROOT/myservice,target=/code,type=bind"\ |