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 csv | |
from pandas import DataFrame as df | |
# -- View -- | |
def transform_data(file_name): | |
"""Function transform CSV file data into Python Dictionary Object""" | |
with open(file_name, 'r') as file_handle: | |
key_list = [] | |
value_list = [] |
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 of library for hash functions | |
const SHA256 = require('crypto-js/sha256'); | |
// class to determine what the blockchain will look like | |
class Block {/* */ | |
// data would store terms of currency would store sender and receiver information | |
// previoushash ensure integrity of data | |
constructor(index, timestamp, data, previoushash = '') { | |
this.index = index; | |
this.timestamp = timestamp; |
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
## Setup name and email | |
git config --global user.name "..." | |
git config --global user.email "..." | |
## Setup line ending preferences, for mac | |
git config --global core.autocrlf input | |
git config --global core.safecrlf true | |
## Set default text editor |
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
cat ~/.../Somefile.text | pbcopy |
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
# See https://help.github.com/articles/ignoring-files for more about ignoring files. | |
# | |
# If you find yourself ignoring temporary files generated by your text editor | |
# or operating system, you probably want to add a global ignore instead: | |
# git config --global core.excludesfile '~/.gitignore_global' | |
# Ignore bundler config. | |
/.bundle | |
# Ignore the default SQLite database. |
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 random | |
def getAnswer (answerNumber): | |
if answerNumber == 1: | |
return 'It is certain' | |
elif answerNumber == 2: | |
return 'It is decidely so' | |
elif answerNumber == 3: | |
return 'Yes' | |
elif answerNumber == 4: | |
return 'Reply hazy try again' |
[TOC]
While this API was intended for service workers, it is actually exposed on the window so it can be accessed from anywhere in your script. The entry point is caches.
- ** Used to store assets that have a URL
- Formally: "a request to response map" (spec)
OlderNewer