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 pandas as pd | |
data = [['Alex',10],['Bob',12],['Clarke',13]] | |
df = pd.DataFrame(data,columns=['Name','Age'],dtype=float) | |
print (df) |
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
image: atlassian/default-image:2 | |
pipelines: | |
branches: | |
qa: | |
- step: | |
name: Deploy to quality assurance | |
deployment: staging # can be test, staging or production | |
services: | |
- docker |
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
FROM node:9 | |
# Create app directory | |
WORKDIR /usr/src/app | |
# Install app dependencies | |
COPY package.json ./ | |
COPY yarn.lock ./ | |
RUN yarn install |
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 express from 'express'; | |
import dotenv from 'dotenv'; | |
import path from 'path'; | |
const getConfigValue = (name, defaultValue) => { | |
let result = process.env[name]; | |
return result ? result : defaultValue; | |
} | |
// Read configuration |
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 apiClient from 'somewhere-else'; | |
const pokemonCache = {}; | |
export function getRawPokemonData(id){ | |
let cachedPokemon = pokemonCache[id]; | |
if (cachedPokemon){ | |
return new Promise((resolve, reject) =>{ | |
resolve(cachedPokemon); |