Skip to content

Instantly share code, notes, and snippets.

View capsulecorplab's full-sized avatar

Sean Marquez capsulecorplab

View GitHub Profile
@capsulecorplab
capsulecorplab / search_biopython.py
Created April 25, 2017 12:50 — forked from bonzanini/search_biopython.py
Searching PubMed with Biopython
# you need to install Biopython:
# pip install biopython
# Full discussion:
# https://marcobonzanini.wordpress.com/2015/01/12/searching-pubmed-with-python/
from Bio import Entrez
def search(query):
Entrez.email = 'your.email@example.com'
@capsulecorplab
capsulecorplab / one_step_at_a_time.ipynb
Last active December 30, 2017 17:50
one_step_at_a_time
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@capsulecorplab
capsulecorplab / startnode.sh
Last active February 17, 2018 06:52
Run using `sh startnode.sh` or make executable using `chmod +x startnode.sh` and run using ./startnode.sh
#!/bin/bash
# Bash command for running geth
geth --networkid 4224 --mine --minerthreads 2 --datadir "." --nodiscover --rpc --rpcport "8545" --port "30303" --rpccorsdomain "*" --nat "any" --rpcapi eth,web3,personal,net --unlock 0 --password ~/ChainSkills/private/password.sec --ipcpath "~/.ethereum/geth.ipc"
@capsulecorplab
capsulecorplab / Escrow.sol
Last active February 24, 2018 06:20
Smart contract for simulating an escrow
pragma solidity ^0.4.18;
contract Escrow {
enum State {AWAITING_PAYMENT, AWAITING_DELIVERY, COMPLETE, REFUNDED}
modifier buyerOnly() {
require(msg.sender == buyer);
_;
}
@capsulecorplab
capsulecorplab / Instructors.sol
Created February 24, 2018 06:20
Smart contract for using struct and mapping
pragma solidity ^0.4.19;
contract Instructors {
struct Instructor {
uint age;
string fName;
string lName;
}
@capsulecorplab
capsulecorplab / keybase.md
Created March 29, 2018 21:57
Keybase proof

Keybase proof

I hereby claim:

  • I am capsulecorplab on github.
  • I am drbriefs (https://keybase.io/drbriefs) on keybase.
  • I have a public key ASC68ubm3bb2nY76GeZZcNzWH_2roXD3kNSob1idNrOA2Qo

To claim this, I am signing this object:

@capsulecorplab
capsulecorplab / undecorator.py
Last active April 4, 2018 21:52
Examines a string argument, `dump`, and Extracts all substring elements sandwiched between the given `front` and `back` criteria, and puts them in a list
def undecorate(dump,front,back):
""" dump: string containing desired substring elements
front: string element preceding desired substring element
back: string element following desired substring element
"""
output = []
while front in dump:
start = dump.find(front) + len(front)
end = dump.find(back, start)
if end > 0:
@capsulecorplab
capsulecorplab / SAP_CLA
Created September 18, 2018 03:07 — forked from CLAassistant/SAP_CLA
SAP Individual Contributor License Agreement
###SAP Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwid
@capsulecorplab
capsulecorplab / CLA.md
Created September 27, 2018 09:19 — forked from balloob/CLA.md
CLA for Apache 2.0 license

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the Apache 2.0 license; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the Apache 2.0 license; or

@capsulecorplab
capsulecorplab / freeze.txt
Created December 8, 2018 08:34
pip freeze piped to .txt
alabaster==0.7.11
apipkg==1.5
appdirs==1.4.3
apturl==0.5.2
asn1crypto==0.24.0
astroid==2.0.4
atomicwrites==1.2.1
attrs==18.2.0
autopep8==1.4
Babel==2.6.0