Skip to content

Instantly share code, notes, and snippets.

View christianplazas-wf's full-sized avatar

Christian Plazas christianplazas-wf

  • WebFilings
  • Columbus, GA
View GitHub Profile
@christianplazas-wf
christianplazas-wf / ExcelSortScript.py
Last active March 14, 2018 19:26
ExcelSortScript.py
import openpyxl
import pandas as pd
wb = openpyxl.load_workbook('RawCageData.xlsx', data_only=True)
sheet = wb['Sheet1']
print(sheet["A1"].value)
n = input("Please Enter the Total Number of Devices: ")
deviceNum = range(1,n+1)
print deviceNum
@christianplazas-wf
christianplazas-wf / share_element_changes.py
Last active August 29, 2015 14:10
Script to call start_share_calc on element changes
from wf.apps.dc.utils import get_section_ids_for_template_id
from calc.constants import SHARE
from calc.start import start_share_calc
from calc.start import _get_calc_lock
from documents.versioning import get_next_revision
template_id=''
membership_key_str = ''
#step 1 - grab membership for use later
from collections import defaultdict
from elements.element import ElementChanges
from elements.change_set import ElementChangeSet
# Step 1
# Get ElementChanges entities for the
membership_key_str = ''
membership = db.get(membership_key_str)
ecs = ElementChanges.query(ancestor=ndb.Key('DraftGroup', membership.key().id())).fetch(100)
@christianplazas-wf
christianplazas-wf / gist:40a5570bea22a00ba10c
Last active August 29, 2015 14:02
Christian's multiple bigsky environment recipe

Multiple BigSky Env Setup

Background

Following these instructions will allow you to create multiple totally isolated bigsky environments. Each environment will have its own: local git repo, local maven repo, python virtual environment and Intellij project. After initial setup no special commands will have to be run to switch configurations. The only thing you need to remember is to type workon <virtual env name> to activate the isolated enviroment.

A few of drawbacks to this approach are:

  • Extra disk space use for each environment - additional space used for separate python virtualenv and maven local repo
  • You have to remember to do pip install ... in each environment