Medium Article to understand the problem and the solution.
Below are two files:
- Problematic-code.js : This was the code that I had submitted but was not working.
- Solution.js : This is the actual working code that I have submitted.
class Rectangle { | |
constructor(w, h) { | |
this.w = w; | |
this.h = h; | |
} | |
} | |
/* | |
* Write code that adds an 'area' method to the Rectangle class' prototype | |
*/ |
Below are two files:
A Pen by OMKAR AGRAWAL on CodePen.
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)import pandas as pd | |
import numpy as np | |
import seaborn as sns | |
sns.set(style='white') | |
import matplotlib.pyplot as plt | |
from sklearn.preprocessing import LabelEncoder | |
from sklearn.cross_validation import train_test_split | |
from sklearn.preprocessing import StandardScaler | |
from sklearn.ensemble import RandomForestClassifier | |
from sklearn.model_selection import KFold |
import re | |
import tweepy | |
from tweepy import OAuthHandler | |
from textblob import TextBlob | |
var express = require('express'), | |
passport = require('passport'), | |
TwitterStrategy = require('passport-twitter').Strategy, | |
ensureLoggedIn = require('connect-ensure-login').ensureLoggedIn, | |
app = express(); | |
app.use(express.static(__dirname + '/public')); | |
app.use(express.cookieParser()); | |
app.use(express.session({ secret: 'keyboard cat' })); | |
app.use(passport.initialize()); |
print["Hello World this is my first line of code in Python."] |