Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Always learning

Laura Kraman lkraman

💭
Always learning
View GitHub Profile
View gist:de6e676aab9592b93c4d5fc6a32b3a2b
C:\Users\lkram\Documents\Bloc\GitHub\bloc\blocipedia-node>heroku logs
» Warning: heroku update available from 7.24.1 to 7.24.3.
(node:173756) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
2019-06-07T14:13:00.316801+00:00 app[web.1]: npm ERR! blocipedia-node@1.0.0 start: `node src/server.js`
2019-06-07T14:13:00.316803+00:00 app[web.1]: npm ERR! Exit status 1
2019-06-07T14:13:00.316806+00:00 app[web.1]: npm ERR!
2019-06-07T14:13:00.316807+00:00 app[web.1]: npm ERR! Failed at the blocipedia-node@1.0.0 start script.
2019-06-07T14:13:00.316810+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-06-07T14:13:02.561310+00:00 app[web.1]:
2019-06-07T14:13:02.561521+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
@lkraman
lkraman / gist:fdf06d16c6e4ce0bdcf629e40874b2ab
Created Apr 3, 2019
Installing and Using Relational Databases
View gist:fdf06d16c6e4ce0bdcf629e40874b2ab
postgres=# \l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+----------------------------+----------------------------+-----------------------
inventory | postgres | UTF8 | English_United States.1252 | English_United States.1252 |
library | postgres | UTF8 | English_United States.1252 | English_United States.1252 |
postgres | postgres | UTF8 | English_United States.1252 | English_United States.1252 |
template0 | postgres | UTF8 | English_United States.1252 | English_United States.1252 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | English_United States.1252 | English_United States.1252 | =c/postgres +
View jsbin.firstmod.js
/*Write a function called even that accepts a single number
as an argument and returns true if the number is even and
false if the number is odd.*/
let even = function(n){
if (n % 2 === 0){
return true
}
else
{
return false