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/bash | |
set -e | |
REPOSITORY=$(basename $(realpath $(dirname "$0"))) | |
VCPUS=16 | |
MEMORY=$(expr 1024 \* 32) | |
COMMAND='[]' | |
JOB_QUEUE=default |
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
#!/usr/bin/env ruby | |
require 'mechanize' | |
require 'json' | |
@agent = Mechanize.new{|a| a.user_agent = 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)'} | |
@agent.get 'https://m.facebook.com/' | |
# 'Log In' | |
form = @agent.page.form_with(:method => 'POST') |
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 io | |
import csv | |
import zlib | |
import boto3 | |
from tqdm.auto import tqdm | |
s3 = boto3.resource('s3') | |
def iterable_to_stream(iterable, buffer_size=io.DEFAULT_BUFFER_SIZE): | |
""" |
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
# the switch | |
def LEFT(a): | |
def f(b): | |
return a | |
return f | |
def RIGHT(a): | |
def f(b): | |
return b |
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 sys | |
import argparse | |
import subprocess | |
parser = argparse.ArgumentParser() | |
parser.add_argument('command', choices=['userpath']) | |
parser.add_argument('--verbose') | |
parser.add_argument('--flag', action='store_true', default=False) |
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
""" | |
http://docs.sqlalchemy.org/en/latest/core/tutorial.html | |
""" | |
import time | |
import logging | |
import logging.config | |
import warnings | |
import sqlparse | |
from functools import partial |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
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
office_id,office_type,state_code,latest | |
AK-G,G,AK,"Bill Walker, an independent, has been the governor of Alaska since 2014. This seat is up for election this year. | |
Walker is running for reelection. | |
Mark Begich is running for the Democratic nomination. | |
Ten Republicans are competing in the primary: Darin A. Colbry, Mike Dunleavy, Thomas Gordon, Scott Hawkins, Gerald Heikes, Merica Hlatcu, Michael D. Sheldon, Mead Treadwell, Mike Chenault and Jacob Kern. | |
The Alaska gubernatorial primaries take place Aug. 21. |
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
cache | |
├── aylien.sqlite | |
├── clavis.sqlite | |
├── google.sqlite | |
├── google_search.sqlite | |
├── joblib | |
│ └── joblib | |
│ └── lib | |
│ └── utils | |
│ └── translate |
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 python | |
import sys | |
from dvc.project import Project | |
from dvc.stage import Stage | |
stage_file = sys.argv[1] | |
dvc = Project() | |
with dvc.state: |