This file contains hidden or 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
git checkout master | |
git checkout -b hotfix_branch | |
# work is done commits are added to the hotfix_branch | |
git checkout develop | |
git merge hotfix_branch | |
git checkout master | |
git merge hotfix_branch |
This file contains hidden or 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 python3 | |
import os, uuid, sys | |
from azure.storage.blob import BlockBlobService, PublicAccess | |
def run_sample(): | |
try: | |
# Create the BlockBlockService that is used to call the Blob service for the storage account | |
block_blob_service = BlockBlobService( | |
account_name='ACCOUNTNAME', |
This file contains hidden or 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 python3 | |
from azure.cosmosdb.table.tableservice import TableService | |
from azure.cosmosdb.table.models import Entity | |
def execute(): | |
"""docstring for execute""" | |
the_connection_string = "DefaultEndpointsProtocol=https;AccountName=MYACCOUNTNAME;AccountKey=ACCOUNTKEY;EndpointSuffix=core.windows.net" |
This file contains hidden or 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 faster way to check if a file contains CRLF character | |
dos2unix -ic *.py | xargs dos2unix --info |
This file contains hidden or 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 numpy as np | |
x = np.array([[2., 54, 2., 5, 2], | |
[2, 0, 0.02, 0.00005, 0.0]]) | |
y = [2, 0, 0.02, 0.00005, 0.0] | |
print(np.where(x[0] > 1e-3, x[0]/(x[1]+(x[1]==0)), 0)) |
NewerOlder