Complete as fast as possible, rest as needed.
- 50 Jumping Jacks
- 25 Wall sit military press
- 40 Crunches
- 20
EC
leg crossover (flat on back, then cross over one leg)
#!/usr/bin/env python | |
import sys | |
import sqlite3 | |
import argparse | |
import re | |
parser = argparse.ArgumentParser(description='deletes tables matching some regular expression') | |
parser.add_argument('database', help='the database file') | |
parser.add_argument('regexp', help='the regexp you are matching') |
#!/usr/bin/env ruby | |
# sc - screenshot utility using imagemagick 'import' | |
require 'optparse' | |
require 'ostruct' | |
require 'shellwords' | |
require 'fileutils' | |
viewers = { | |
'g' => 'geeqie', |
from wms_api_client.client import Client | |
# could also be set as environment variables | |
config = dict( | |
WMS_REST_BASE_URL="https://secure-wms.com", | |
WMS_REST_CLIENT_ID="<...your client id...>", | |
WMS_REST_SECRET="<...your secret...>" | |
) | |
client = Client.from_login(user_login="1", tpl="BITeam", config=config) |
""" An example of appending blocks to a help message. """ | |
import argparse | |
import sys | |
TEXT_TO_APPEND = """ | |
examples: | |
This is how you do things |
@pytest.fixture | |
def quietcaplog(caplog): | |
""" Capture logging while suppressing output to stderr and stdout. | |
quietcaplog IS a caplog fixture (so anything you can do with the caplog | |
fixture you can do with it). BUT it also removes any StreamHandler | |
loggers from the root logger before the test and replaces them on the root | |
logger after the test is over. That means your tests are quiet, but you | |
can also inspect the log messages being produced if needed. |
# http://rosettacode.org/wiki/Twelve_statements | |
#1. This is a numbered list of twelve statements. | |
#2. Exactly 3 of the last 6 statements are true. | |
#3. Exactly 2 of the even-numbered statements are true. | |
#4. If statement 5 is true, then statements 6 and 7 are both true. | |
#5. The 3 preceding statements are all false. | |
#6. Exactly 4 of the odd-numbered statements are true. | |
#7. Either statement 2 or 3 is true, but not both. | |
#8. If statement 7 is true, then 5 and 6 are both true. |
#!/usr/bin/ruby | |
require 'zlib' | |
NETWORK_FLOAT = 'g*' | |
NETWORK_DOUBLE = 'G*' | |
LITTLE_ENDIAN_FLOAT = 'e*' | |
LITTLE_ENDIAN_DOUBLE = 'E*' | |
BASE_64 = 'm*' |
import subprocess | |
class SaveIndixDataError(Exception): | |
""" There was some error with saving indix data to the database. """ | |
pass | |
class SaveIndixDataMismatchError(SaveIndixDataError): | |
""" Number of submitted records did not match number processed. """ | |
pass |
#!/usr/bin/env ruby | |
# for working with Doba_Product descriptions | |
require 'redcarpet' | |
if ARGV.size == 0 | |
puts "usage: #{File.basename(__FILE__)} <file>.txt ..." | |
puts "output: text and html, ready for sql upload" | |
puts "" | |
puts "notes:" |