Skip to content

Instantly share code, notes, and snippets.

View nimatrazmjo's full-sized avatar
🎯
Focusing

Nimatullah Razmjo nimatrazmjo

🎯
Focusing
View GitHub Profile
@nimatrazmjo
nimatrazmjo / 19 Tips For Everyday Git Use
Created December 30, 2022 12:49 — forked from numberwhun/19 Tips For Everyday Git Use
19 Tips For Everyday Git Use
Taken from: http://www.alexkras.com/19-git-tips-for-everyday-use/
19 Tips For Everyday Git Use
September 8, 2015 by Alex Kras 31 Comments
TwitterHacker NewsRedditFacebookShare1,491
I’ve been using git full time for the past 4 years, and I wanted to share the most practical tips that I’ve learned along the way. Hopefully, it will be useful to somebody out there.
If you are completely new to git, I suggest reading Git Cheat Sheet first or checking out this free tutorial. This article is aimed at somebody who has been using git for three months or more.
@nimatrazmjo
nimatrazmjo / Dockerfile
Created January 29, 2019 10:32
Checking for standard way of using docker and docker compose for MEAN stack to development and production
FROM ubuntu:18.04
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
gcc \
git \
libpq-dev \
@nimatrazmjo
nimatrazmjo / arrayObject
Created August 30, 2018 05:07
An array of objects in JavaScript. Each one contains a name (a string) and ranking (a number). Write two functions, one to return the objects ordered by ranking and another to return the average ranking
var arr = [
{
"name": "BBC TV",
"ranking": 2
},
{
"name": "CNN TV",
"ranking": 1,
},
{
let UserPackage = require('../company/userPackages/userPackages.schema');
let Training = require('../trainings/trainings.schema');
let Request = require('../rfq/request/request.schema');
let Job = require('../jobPosting/jobPosting.schema');
let Company = require('../company/company.schema');
let User = require('./user.schema');
module.exports.mergeUser = (req, res) => {
let fromUserId = req.params.from;
let toUserId = req.params.to;
Let's lool at the following example structure for RESTful API using Node.js, Express.js included tesing
app/
|---models/
|---controller/
|---helpers/
|---middlewares/
|---tests/
|---models/
|---controllers/
@nimatrazmjo
nimatrazmjo / README.md
Created June 13, 2016 06:25 — forked from jxson/README.md
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation