Skip to content

Instantly share code, notes, and snippets.

View mavericks065's full-sized avatar
👻
Happy days

Nicolas Guignard mavericks065

👻
Happy days
View GitHub Profile
@mavericks065
mavericks065 / data-exercise-python.md
Last active November 8, 2022 12:26
Example of exercise to do in order to work with classes in python

This exercise's goal is to look into OOP basic principles.

Part 1

  • Create a class Employee
  • Add a few fields: firstName, lastName (as strings), create the associated constructor for it.
  • In the Main function print the result of an instanciation of an employee. If the result is un-readable make it readable.
  • The class attributes can be accessible from outside the class. Print them in the main. But they cannot be set. They must stay immutable

Part 2

  • create a class Human and make it have a first name. Refactor Employee so that first name does not need to be specified or declared.
@mavericks065
mavericks065 / .gitlab-ci.yml
Created October 21, 2019 02:46 — forked from daicham/.gitlab-ci.yml
A sample of .gitlab-ci.yml for a gradle project
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
@mavericks065
mavericks065 / values_pointers.go
Created November 21, 2018 20:49 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value