Skip to content

Instantly share code, notes, and snippets.

View svngoku's full-sized avatar
🏠
Working from home

svngoku

🏠
Working from home
  • Paris, France
View GitHub Profile
@svngoku
svngoku / main.cs
Last active January 6, 2019 01:56
using System;
class MainClass {
public static void Main (string[] args) {
Bateau One = new Bateau("Titanic", 52.310);
var Information = One.InfoBateau();
Console.WriteLine(Information);
// print : The bateau is Titanic and the weight is 52.31 tons
Console.ReadLine();
}
/* Normally, this query prints to you any programming language
containing the letters S (as SQL)
*/
SELECT * FROM Languages
WHERE LanguageType = 'Programming' AND LanguageName LIKE 'S%'
ORDER BY LanguageType
;
@svngoku
svngoku / main.py
Created January 12, 2019 21:02
Robot_Person created by svngoku - https://repl.it/@svngoku/RobotPerson
class Robot:
def __init__(self, n, c, w):
self.name = n
self.color = c
self.weight = w
def introduce_self(self):
print("My name is " + self.name)
@svngoku
svngoku / index.js
Created January 24, 2019 16:19
ObjectProtos created by svngoku - https://repl.it/@svngoku/ObjectProtos
/* PROTOTYPE */
const bookProtos = {
getSummary : () => {
return `${this.title} was written by ${this.author} in ${this.year}`;
},
getAge : () => {
const years = new Date().getFullYear() - this.year;
return `${this.title} in ${years} old`;
}
@svngoku
svngoku / fetch-api-examples.md
Created February 4, 2019 12:15 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples
@svngoku
svngoku / main.py
Created February 6, 2019 00:17
Matrix_Multiply created by svngoku - https://repl.it/@svngoku/MatrixMultiply
# Methode to add matrix in a array
def add(matrix_a, matrix_b):
rows = len(matrix_a)
columns = len(matrix_a[0])
matrix_c = []
for i in range(rows):
list_1 = []
for j in range(columns):
val = matrix_a[i][j] + matrix_b[i][j]
list_1.append(val)

Algorithmic layouts

You are looking at the most important, and most abundant thing on the web. You can't see it, unfortunately, because it's very small… aaaaand it's invisible — so having a magnifying glass doesn't really help here. But still.

I'm talking, of course, about U+0020; not to be confused with the band U2, who are just as ubiquitous, but far less useful.

This unicode point, representing the humble space character, is between every word, in every run of text, on every page of the web. And it has a very special characteristic: it's not sticky like glue. If two words are neighbors but there's not enough room for both of them, the space will free the second word to wrap around and start a new line.

Before getting into flexible containers, viewport meta tags, and @media breakpoints this humble character is what makes the web fundamentally 'responsive'. That is: able to change the layout of its content to suit different devices, contexts, and settings. Browser text does this automa

Advanced JavaScript Learning Resources

This is a list of advanced JavaScript learning resources from people who responded to this [Tweet][13] and this [Tweet][20].

  • [You Don't Know JS][3]

  • [Frontend Masters courses by Kyle Simpson][12]

  • [@mpjme][6]'s [YouTube videos][5]

@svngoku
svngoku / Docker.md
Last active May 4, 2020 01:38
Fonctionnement de docker

Docker

Docker est une plateforme permettant aux développeurs et aux administrateurs système de développer, déployer et exécuter des applications avec des conteneurs. L'utilisation de conteneurs Linux pour déployer des applications s'appelle la conteneurisation. Les conteneurs ne sont pas nouveaux, mais leur utilisation pour déployer facilement des applications l'est.

Concept de Docker

Docker est une plateforme permettant aux développeurs et aux administrateurs système de développer, déployer et exécuter des applications avec des conteneurs. L'utilisation de conteneurs Linux pour déployer des applications s'appelle la conteneurisation. Les conteneurs ne sont pas nouveaux, mais leur utilisation pour déployer facilement des applications l'est. La conteneurisation est de plus en plus populaire car les conteneurs sont:

  • Flexible: même les applications les plus complexes peuvent être conteneurisées.
  • Lightweight: les conteneurs exploitent et partagent le noyau hôte.
  • Interchangeable: vous
@svngoku
svngoku / index.js
Last active March 16, 2019 21:47
DifficultAngelicPublishers created by svngoku - https://repl.it/@svngoku/DifficultAngelicPublishers
/* functional programming without Side Effect*/
let conf = { name: "SaintJS", date: 2017 } ;
function renameConference(oldConf , newNameConf) {
return { name: newNameConf , date: oldConf.date };
}
let newConf = renameConference(conf , "No side effect Conference");
console.log(newConf);
console.log(conf);