Skip to content

Instantly share code, notes, and snippets.

View marius92mc's full-sized avatar

Marius-Constantin Melemciuc marius92mc

  • Bucharest, Romania
View GitHub Profile
/*
IMPORTANT!
The rule about pointers vs. values for receivers is that
value methods can be invoked on pointers AND values, but
pointer methods can only be invoked on pointers.
`make([]int, 10, 100)`
// It allocates an array of 100 ints and then creates a slice structure with length 10 and a capacity of 100
// pointing at the first 10 elements of the array.
// (When making a slice, the capacity can be omitted.)
@marius92mc
marius92mc / mds_students.md
Last active May 8, 2019 12:53
Details for students

General notes

  • make teams with 3 - 5 members
  • GitHub account:
    • I recommend using the personal email address for the main email address, and the FMI one as secondary
    • Register for Student Developer Pack. You need the FMI email address for this.
  • inspiration for app ideas:
    • website: frontend, backend
    • game: game engine, C++, JS - in browser, etc
    • JS package manager npm
  • Python Package Manager pypi
@marius92mc
marius92mc / main.go
Created January 7, 2018 15:12 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@marius92mc
marius92mc / bobp-python.md
Created November 13, 2017 22:29 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
  • Bump the version in setup.py

Release a new version on GitHub

  • $ git tag x.y.z -m "..."
  • To see the versions $ git tag
  • $ git push --tags origin master

Update version on PyPi

@marius92mc
marius92mc / README.md
Created July 26, 2017 21:43 — forked from hofmannsven/README.md
My simply Git Cheatsheet
# $ grep -nre "#include" *.cpp | wc -l
# Files I/O
"""
Some objects define standard clean-up actions to be undertaken when
the object is no longer needed, regardless of whether or not the
operation using the object succeeded or failed. Look at the following
example, which tries to open a file and print its contents to the screen.
"""
# Not recommended
@marius92mc
marius92mc / tmux-cheatsheet.markdown
Created April 23, 2017 17:19 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@marius92mc
marius92mc / emacs.md
Created April 14, 2017 11:05 — forked from adimanea/emacs.md
My emacs tips, tricks & config
@marius92mc
marius92mc / osx-10.10-setup.md
Created April 7, 2017 00:09 — forked from kevinelliott/osx-10.10-setup.md
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software