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 json | |
import re | |
import grequests | |
import pandas as pd | |
import requests | |
from bs4 import BeautifulSoup | |
from bs4.diagnose import profile | |
Loading
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
import subprocess | |
def check_dependencies(): | |
"""Ensure required tools for installation are present. | |
""" | |
print("Checking required dependencies") | |
for cmd, param, url in [("git", '--version', "http://git-scm.com/"), |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<TrainingCenterDatabase xmlns:ext="http://www.garmin.com/xmlschemas/ActivityExtension/v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2"> | |
<Activities> | |
<Activity Sport="Running"> | |
<Id>2012-12-26T21:29:53Z</Id> | |
<Notes>Aerobics</Notes> | |
<Lap StartTime="2012-12-26T21:29:53Z"> | |
<TotalTimeSeconds>608.47</TotalTimeSeconds> | |
<DistanceMeters>1609.34399414</DistanceMeters> | |
<MaximumSpeed>4.55431461334</MaximumSpeed> |
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
version: "2" | |
services: | |
web: | |
build: . | |
#command: python3 manage.py runserver 0.0.0.0:8000 | |
command: bash -c "pip install -r requirements.txt && gunicorn geninfo.wsgi:application --bind 0.0.0.0:8000" | |
volumes: | |
- .:/usr/src/ | |
expose: |
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 functions | |
class VMs(object): | |
def __init__(self, name, uuid, sr_uuid): | |
self.name = name | |
self.uuid = uuid | |
#-------------------------# | |
#Info about vms snapshots, templates and vdi/vm backup | |
#sr-uuid is the storage place where vdi is. | |
#-------------------------# |
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
# -*- coding: utf-8 -*- | |
import xlwt | |
from django.contrib import admin | |
from django.http import HttpResponse | |
from models import (PaymentForm, Order, OrderItem, | |
Discount, Affiliate) | |
from forms import DiscountForm |
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
class VM(object): | |
def __init__(self, uuid, name, status): | |
self.uuid = uuid | |
self.name = name | |
self.status = status | |
def __repr__(self): | |
return '%s - %s (%s)' % (self.uuid, self.name, self.status) | |
def export(self, directory_name=None): |
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
def can_pipe(command, fastq_file): | |
''' | |
bwa-mem handles longer (> 70bp) reads with improved piping. | |
Randomly samples 5000 reads from the first two million. | |
Default to no piping if more than 75% of the sampled reads are small. | |
''' | |
min_size = 70 | |
thresh = 0.75 | |
head_count = 8000000 | |
tocheck = 5000 |
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
var express = require('express') | |
, routes = require('./routes') | |
, http = require('http') | |
, path = require('path') | |
, fs = require('fs') | |
, uuid = require('uuid') | |
, yhat = require('yhat'); | |
var app = express(); | |
var yh = yhat.init("your username", "your apikey"); |
NewerOlder