Skip to content

Instantly share code, notes, and snippets.

View soner8's full-sized avatar

Maco soner8

View GitHub Profile
@soner8
soner8 / findThePrecious.html
Created February 22, 2018 19:02
Structurer une page HTML Macodou
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>findThePrecious.com</title>
</head>
<body>
<header>
<h1>findThePrecious.com</h1>
<nav>
@soner8
soner8 / Solution.html
Created March 8, 2018 10:38
Solution JScripting
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
/*Home page*/
body, html {
height: 100%;
margin: 0;
}
.bgHome {
/* The image used */
background-image: url("home.jpg");
@soner8
soner8 / .zshrc
Created March 11, 2018 16:45
ZSHRC
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/maco/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@soner8
soner8 / Es6 PT1
Created March 12, 2018 15:00
ES6 PT1
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<title>Title of the document</title>
</head>
<body>
<script>
@soner8
soner8 / age.js
Created March 13, 2018 08:35
age.js
process.stdin.resume()
process.stdin.setEncoding('utf8')
console.log('How old r u ? ')
process.stdin.on('data', (number) => {
let annee = 2018 - number;
if (1 <= number && number <= 99) {
console.log('Vous êtes nés en :' + annee);
process.exit()
@soner8
soner8 / arrow.js
Created March 13, 2018 10:24
Arrox
const profile = {
name: 'Alex',
getName: function (){
console.log(this.name);
}
};
profile.getName();
@soner8
soner8 / arrow.js
Created March 13, 2018 10:58
arrow
const profile = {
name: 'Alex',
getName(){
console.log(this.name);
}
};
profile.getName();
@soner8
soner8 / server.js
Created March 13, 2018 12:46
server
// server.js
// load the things we need
var express = require('express');
var app = express();
// set the view engine to ejs
app.set('view engine', 'ejs');
// use res.render to load up an ejs view file
@soner8
soner8 / scroll.html
Created March 16, 2018 11:18
scroll
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1">
<title>The Market Tavern</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="styledev.css" />