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
var Excel = require('exceljs'); | |
var fs = require('fs') | |
var inputFilePath = "C:/Users/user/data-pattern.xlsx"; | |
var outputDirPath = "./output/"; | |
var sheetName = "data-sheet"; | |
var startY = 5; | |
var startX = 3; | |
var itemNum = 3; | |
var rowNum = 2; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
# box | |
config.vm.box = "centos65-x86_64-20140116" | |
config.vm.define "dev-server" do |node| |
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 nginx:1.13.8-alpine | |
LABEL maintainer='Keid' | |
ENV PATH $PATH:/usr/sbin/ | |
COPY nginx.conf /etc/nginx/nginx.conf | |
RUN apk update |
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 React from 'react'; | |
const Auth = props => { | |
const password = 'anyPassword'; | |
if (password != 'correctPassword') { | |
return <h3>You are not authorized</h3>; | |
} else { | |
return props.children; | |
} |
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
daemon off; # For Docker | |
worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>; # For Heroku | |
load_module modules/ngx_http_geoip_module.so; # GeoIP | |
events { | |
worker_connections 1024; | |
multi_accept on; | |
use epoll; | |
} |
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
#!/bin/bash | |
readonly HEROKU_CLI_VERSION=v6.16.12-04b3626 | |
wget https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli-linux-x64.tar.gz -O heroku.tar.gz | |
sudo tar -xvzf heroku.tar.gz | |
sudo mkdir -p /usr/local/lib /usr/local/bin | |
sudo mv heroku-cli-$HEROKU_CLI_VERSION-linux-x64 /usr/local/lib/heroku | |
sudo ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku | |
cat > ~/.netrc << EOF |
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
#!/bin/bash | |
readonly DOCKERIZE_VERSION=v0.6.1 | |
wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | |
sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | |
sudo rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz |
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.11.1-alpine | |
LABEL maintainer="Keid" | |
RUN mkdir /app | |
WORKDIR /app | |
RUN npm install -g yarn@1.6.0 | |
RUN chmod +x /usr/local/bin/yarn |
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.11.1-alpine | |
LABEL maintainer="Keid" | |
RUN mkdir /app | |
WORKDIR /app | |
COPY clock.js clock.js | |
CMD node clock.js |
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
version: '3' | |
services: | |
jupyter-notebook: | |
image: continuumio/anaconda3:5.1.0 | |
ports: | |
- "8888:8888" | |
volumes: | |
- ./data/notebooks:/data/notebooks | |
command: jupyter notebook --notebook-dir=/data/notebooks --ip=0.0.0.0 --port=8888 --no-browser --allow-root |
OlderNewer