In your command-line run the following commands:
brew doctor
brew update
const cache = {} | |
export default function useGlobalMemo (key, fn, deps) { | |
if (!cache[key]) { | |
cache[key] = { | |
subs: 0, | |
deps, | |
value: fn(), | |
} |
for node in node1 node2 node3;do | |
multipass launch -n $node | |
done | |
# Init cluster on node1 | |
multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -" | |
# Get node1's IP | |
IP=$(multipass info node1 | grep IPv4 | awk '{print $2}') |
FROM ruby:2.6.5-alpine | |
RUN apk add --update --no-cache bash build-base nodejs sqlite-dev tzdata postgresql-dev yarn | |
RUN gem install bundler:2.1.4 | |
WORKDIR /usr/src/app | |
COPY package.json yarn.lock ./ | |
RUN yarn install --check-files |
brew install protobuf | |
go get -u google.golang.org/grpc | |
go get -u github.com/golang/protobuf/protoc-gen-go | |
protoc -I=./api --go_out=plugins=grpc:./api ./api/hello.proto |
StageName | GroupName | Date | StadiumName | HomeTeamName | AwayTeamName | DataUrl | |
---|---|---|---|---|---|---|---|
First stage | Group A | 2018-06-14T15:00:00Z | Luzhniki Stadium | Russia | Saudi Arabia | https://api.fifa.com/api/v1/live/football/17/254645/275073/300331503 | |
First stage | Group A | 2018-06-15T12:00:00Z | Ekaterinburg Arena | Egypt | Uruguay | https://api.fifa.com/api/v1/live/football/17/254645/275073/300353632 | |
First stage | Group B | 2018-06-15T15:00:00Z | Saint Petersburg Stadium | Morocco | IR Iran | https://api.fifa.com/api/v1/live/football/17/254645/275073/300331526 | |
First stage | Group B | 2018-06-15T18:00:00Z | Fisht Stadium | Portugal | Spain | https://api.fifa.com/api/v1/live/football/17/254645/275073/300331524 | |
First stage | Group C | 2018-06-16T10:00:00Z | Kazan Arena | France | Australia | https://api.fifa.com/api/v1/live/football/17/254645/275073/300331533 | |
First stage | Group D | 2018-06-16T13:00:00Z | Spartak Stadium | Argentina | Iceland | https://api.fifa.com/api/v1/live/football/17/254645/275073/300331515 | |
First stage | Group C | 2018-06-16T16:00:00Z | Mordovia Arena | Peru | Denmark | https://api.fifa.com/ |
In your command-line run the following commands:
brew doctor
brew update
I've been avoiding learning Webpack for a while now as I never thought I needed to learn another build tool, Gulp does everything I'd ever need from a build tool now or in the future. However, ever since we've moved from AngularJS to Angular (or Angular 2+) as well as introducing standards such as; TypeScript instead of Javascript and a Jasmine/Karma combo for UI testing, but also Webpack as an initial build tool. I've avoided it for long enough and now, in September 2017, I thought it's time to finally move on from my old friend Gulp.
If you've never heard of Gulp before, this isn't the post to learn, there are plenty of good tutorials out there a Google search away. Then again, you don't really need to know Gulp to understand what's going on so feel free to continue reading nevertheless.
[Here's wh
This is a simple way of importing MySQL database in Docker.
In you Dockerfile you must have a shared folder. Shared folder is a directory in your host machine that is mounted to Docker instance.
Put the exported sql file in the shared folder.
Login to your Docker instance via docker exec -it DOCKER_CONTAINER_ID bin/bash
.
Login to MySQL via mysql -u USERNAME -p
.
import sys, os, shutil | |
def generateClass(directory, classNumber, methodsPerClass, mainPackage): | |
className = "Foo" + str(classNumber) | |
filePath = os.path.join(directory, className + ".java") | |
with open(filePath,"w+") as f: | |
f.write("package " + mainPackage + "." + directory + ";\n") | |
f.write("public class " + className + " {\n") | |
for i in xrange(0, methodsPerClass): | |
f.write("public void foo" + str(i) + "(){\n") |
I don't like IDEs. I want to code in my editor and use the command line for everything else. I like the flow better and it feels faster to me.
I also like to have one command to do several things I want to do.
I don't want to open Xcode to create an archive, then open the archive window, then upload the archive to iTunes. It's slow and breaks my flow.
Also, in react native, it's trivial to build Android releases on the command line. I want to create and upload both iOS and android from the command line.
So after hours of searching the internet I found a flow I like for creating and uploading archives for iOS all from the command line