https://steamcdn-a.akamaihd.net/client/installer/SteamSetup.exe
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
| (defun factorial (n &optional (acc 1)) | |
| (if (= n 0) | |
| acc | |
| (factorial (- n 1) (* n acc)) | |
| ) | |
| ) | |
| (factorial 5) | |
| (defun fibonacci (n &optional (a 0) (b 1)) |
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 dataclasses import dataclass | |
| from typing import List | |
| import re | |
| """ | |
| alphanumeric ::= [0-9a-zA-Z_-] | |
| numeric ::= [0-9] |
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/python3 | |
| import re | |
| completeWords = [ | |
| 'closely', | |
| 'believe', | |
| 'accept', | |
| 'myths', | |
| 'way', | |
| 'explained', |
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
| # build stage | |
| FROM node:lts-alpine as build-stage | |
| WORKDIR /app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn | |
| COPY . ./ | |
| RUN yarn build | |
| # production stage | |
| FROM nginx:stable-alpine as production-stage |
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
| REPO_NAME=XXXXXXXXX | |
| echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | |
| # build the docker image and push to an image repository | |
| docker build -t $REPO_NAME . | |
| docker tag $REPO_NAME $DOCKER_USERNAME/$REPO_NAME | |
| docker push $DOCKER_USERNAME/$REPO_NAME |
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
| # build stage | |
| FROM node:lts-alpine as build-stage | |
| WORKDIR /app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn | |
| COPY . ./ | |
| RUN yarn build | |
| # production stage | |
| FROM nginx:stable-alpine as production-stage |
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
| FROM alpine:latest | |
| EXPOSE 80 | |
| # using react here only to test | |
| RUN apk update && apk add yarn | |
| RUN yarn | |
| ENV PATH="$PATH:/opt/yarn-[version]/bin" | |
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
| sudo pacman -S pacman-contrib | |
| cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bakup | |
| curl https://www.archlinux.org/mirrorlist/all/https/ | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 6 - > /etc/pacman.d/mirrorlist |
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
| async.waterfall([ | |
| callback=>{ | |
| console.log('this is the first function') | |
| callback(null, 'input from step 1') | |
| } | |
| , | |
| (val, callback)=>{ | |
| console.log('this is the 2nd function') |
NewerOlder