Skip to content

Instantly share code, notes, and snippets.

View lena's full-sized avatar

Lena Feldberg lena

View GitHub Profile
@lena
lena / location_to_datetime.py
Last active September 11, 2018 13:35
Solution to Onboarding Project #2
"""
Location to Datetime CLI
Usage:
python location_to_datetime.py --coordinates='39.6034810,-119.6822510'
python location_to_datetime.py --address='278 Bay Ridge Avenue, Brooklyn, NY, 11209'
python location_to_datetime.py --address='New York' --from-time='2017-08-08' --from-address='Egypt'
python location_to_datetime.py --address='New York' --from-time='2017-08-08T10:20:23' --from-address='Egypt'
python location_to_datetime.py --address='New York' --to-json
python location_to_datetime.py --address='New York' --format-str='YYYY-MM-DD HH:mm:ss ZZ'
@lena
lena / csv_to_json.py
Last active March 22, 2020 02:22
Solution to Onboarding Project #1
#! /usr/bin/env python
import csv
import fire
import json
import pyjq
"""CSV TO JSON CLI
Usage:
python csv_to_json.py convert --csv_file="file.csv" --json_file="file.json"
@lena
lena / keybase.md
Last active September 7, 2018 11:55

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@lena
lena / bp
Created October 29, 2017 16:30
defmodule ______ do
require Logger
@type new_admin_args :: %{
username: String.t,
password: String.t,
name: String.t,
email: String.t,
usda_farm_id: integer,
farm_name: String.t,
# In terminal:
# curl https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
# Copy the following lines into ~/.bash_profile
source ~/.git-prompt.sh
# prompt colors