Skip to content

Instantly share code, notes, and snippets.

View jmarcm's full-sized avatar

Jean-Marc MONTOUT jmarcm

View GitHub Profile
@jmarcm
jmarcm / scrimba-react-intro-to-refs-1.html
Last active October 5, 2025 08:53
Scrimba -- React Intro to Refs 1
<div id="root"></div>
@jmarcm
jmarcm / my_class.php
Last active October 20, 2021 14:24
Récupération de paramètres en utilisant ReflectionMethod
<?php
function __construct($data, $filepath, $first_line = '') {
$reflection = new ReflectionMethod(get_class($this), '__construct');
$parameters = $reflection->getParameters();
foreach ($parameters as $parameter) {
$this->{$parameter->name} = ${$parameter->name};
@jmarcm
jmarcm / main.dart
Last active July 25, 2020 12:07
Dart Classes inheritance polymorphism
void main() {
Car mySimpleCar = Car();
print(mySimpleCar.numberOfSeats);
mySimpleCar.drive();
LevitatingCar myFutureCar = LevitatingCar();
myFutureCar.drive();
SelfDrivingCar myAutoCar = SelfDrivingCar('1 Hacker St');
myAutoCar.drive();
@jmarcm
jmarcm / main.dart
Last active July 25, 2020 11:48
Dart classes
void main() {
Human jane = Human(startingHeight: 8);
print(jane.height);
print(jane.age);
jane.say("On est en week-end");
}
class Human {
double height;
int age = 0;
@jmarcm
jmarcm / fcc-choropleth-map.markdown
Created September 16, 2019 08:02
[FCC] Choropleth Map
@jmarcm
jmarcm / fcc-visualize-data-with-a-heat-map-released.markdown
Last active September 9, 2019 14:29
[FCC] Visualize Data with a Heat Map (Released)
@jmarcm
jmarcm / fcc-visualize-data-with-a-heat-map.markdown
Last active September 9, 2019 14:06
[FCC] Visualize Data with a Heat Map
@jmarcm
jmarcm / hello_world.md
Last active August 31, 2019 09:21
Hello World Examples

Run ruby hello_world.rb or python hello_world.py to print Hello World

@jmarcm
jmarcm / settings.js
Last active August 31, 2019 08:29
Settings for application
{
timeout: 3500
}
@jmarcm
jmarcm / index.html
Created August 23, 2019 05:53
Petite messagerie
<div id="root"></div>