Resources for learning web design & front-end development:
ONLINE
Design
Resources for learning web design & front-end development:
ONLINE
Design
I will be following the official documentation here but they take some things for granted, many users could get frustrated and confused that's why I created this gist.
I have downloaded the mongo files in my root user directory for example: /Users/israel/mongodb therefore if you want to do the same first enter cd
in your terminal.
then enter pwd
command in your terminal and you should be able to se something similar to /Users/<yourmacuser>
If the previous is correct you may want to proceed and open the terminal then download the tar:
#!/bin/bash | |
hostname=$(hostname -s) | |
cd ~/Library/Application\ Support/com.bohemiancoding.sketch3/ | |
rm .license && touch .license && echo '{"meta":{"generated_at":"'$(date)'","sign":"==","device_name":"'$hostname "("$(id -un)')"},"payload":{"status":"ok","application":"sketch3","type":"license","udid":"c2d8c1dd037f919d57124de1037eeb22efad6bd1","expiration":"9999999999"}}' >> .license | |
echo '127.0.0.1 backend.bohemiancoding.com' | sudo tee -a /etc/hosts |
const admin = require('firebase-admin'); | |
admin.initializeApp({ | |
credential: admin.credential.cert('./movies-387bf-firebase-adminsdk-4hoi8-c52699119b.json'), | |
databaseURL: 'https://movies-387bf.firebaseio.com', | |
}); | |
// Get a database reference to our blog | |
const db = admin.database(); |
var Firebase = require("firebase"); | |
var express = require("express"); | |
// Create HTTP Server | |
var app = express(); | |
var server = require("http").createServer(app); | |
// Attach Socket.io server | |
var io = require("socket.io")(server); | |
// Indicate port 3000 as host | |
var port = process.env.PORT || 3000; |
const shortid = require("shortid"); // shortid.generate() returns a unique "short" id | |
const txtgen = require("txtgen"); // txtgen.sentence() returns random "readable" sentences | |
const faker = require("faker"); // faker is used for generating random fake data. | |
const _ = require("lodash"); // lodash is a utility lib for Javascript | |
const users = generateUsers(10); | |
export const contacts = _.mapKeys(users, "user_id"); | |
export const getMessages = messagesPerUser => { | |
let messages = {}; | |
_.forEach(users, user => { |
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var babelify = require('babelify'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var uglify = require('gulp-uglify'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var livereload = require('gulp-livereload'); |
Lesson 1 - Iterations | |
- BinaryGap - https://codility.com/demo/results/trainingU2FQPQ-7Y4/ | |
Lesson 2 - Arrays | |
- OddOccurrencesInArray - https://codility.com/demo/results/trainingFN5RVT-XQ4/ | |
- CyclicRotation - https://codility.com/demo/results/trainingSH2W5R-RP5/ | |
Lesson 3 - Time Complexity | |
- FrogJmp - https://codility.com/demo/results/training6KKWUD-BXJ/ | |
- PermMissingElem - https://codility.com/demo/results/training58W4YJ-VHA/ |
// No Security | |
{ | |
"rules": { | |
".read": true, | |
".write": true | |
} | |
} |