We build 2 web scraper to get character list from Walking dead show and FRIENDS show We build a RESTful API with IBM Loopback and connect to our character list storaged on a MySQL database We build web interface for user to input their preference of every character of a show
#!/bin/bash | |
set -e # stop on error | |
echo get last commit | |
git pull | |
echo add dist folder | |
git add -f dist | |
echo commit changes | |
git commit -m "deploy to gh-pages" | |
echo push to remote target branch (gh-pages is target branch) |
Some useful commmands you will need to build your goloang binary and deploy to aws-ec2
$ GOOS=linux GOARCH=amd64 go build -o [binary-name]
- type
go env
to check your environment variables GOOS
stands for Go OS, depends on what ec2 machine you rent, you might have different os settingGOARCH
stands for Go Archetecture-o
only allowed when compiling a single package, define the name of output file
Below is the coding challenge. You have 2 hours to complete the challenge. If you need more time to finish, please send us what you have at the 2 hour mark and then send over your final solution once you have completed it (within 24 hours). We will assess you on both versions.
You can use any programming language you are comfortable with. When ready, please email your code as an attachment (please do not put the solution on GitHub or any other public repository).
Thank you!
Your task is to write an implementation of the game Connect-4 (http://en.wikipedia.org/wiki/Connect_Four).
0xD9dDC0A50F94d38514e02c70bcF00835B3Ba3F71 |
const call = async (index) => { | |
setTimeout(()=>{ | |
console.log(index) | |
},5000) | |
} | |
for (var i=0;i<5;i++) { | |
await call(i); | |
} |
module.exports = { | |
networks: { | |
development: { | |
host: "localhost", | |
port: 8545, | |
network_id: "*", // Match any network id | |
gas: 4700000 | |
} | |
} | |
}; |
import random | |
count = 0 | |
number = random.randint(1, 100) | |
while count < 11: | |
print('Take a guess from 1 ~ 100') | |
guess = input() | |
guess = int(guess) |
This is a quick synopsis of the Golden Picks 2018 to hold until Q3 using the
languagecrunch
Sentiment endpoint (utilizes Spacy).
polarity
: whether the expressed opinion in a document, a sentence or an entity feature/aspect is positive, negative, or neutral. Advanced, "beyond polarity" sentiment classification looks, for instance, at emotional states such as "angry", "sad", and "happy". (Source: Wikipedia)subjectivity
: The subjectivity of words and phrases may depend on their context and an objective document may contain subjective sentences (e.g., a news article quoting people's opinions). (Source: Wikipedia
- Basic Concepts Of The Blockchain.
- The Short Unofficial Definition
- Blockchain is a continuously growing list of records, the special block & chain structure and crypotography make the distributed ledger trustless.
- The Basic Characteristics: Distributed, trustless, immutable, accountable -> Therefore can be DECENTRALIZED
- Distributed: distributed ledger, managed by peer-to-peer(p2p) network (For use as a distributed ledger, a blockchain is typically managed by a peer-to-peer network collectively adhering to a protocol for validating new blocks)
- Centralized: all nodes are connected to the central node. Lead to single point of failure, scaling issue, and inefficiency problem
- Trustless: It is Anti-fraud by consensus mechanism design (PoW made bitcoin the first digital currency to solve the double spending problem without the need of a trusted authority or central server.)
- Distributed: distributed ledger, managed by peer-to-peer(p2p) network (For use as a distributed ledger, a blockchain is typically managed by a peer-to-peer network collectively adhering to a protocol for validating new blocks)
- The Short Unofficial Definition
- Immutable: Records are immutable by blocks & chaining d