Skip to content

Instantly share code, notes, and snippets.

View pixmin's full-sized avatar

Gaëtan PRIOUR pixmin

View GitHub Profile
@pixmin
pixmin / Preferences.sublime-settings
Last active January 14, 2019 10:35
Sublime Settings (Linux) - BMS
{
"always_show_minimap_viewport": true,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
@pixmin
pixmin / Default.sublime-keymap
Last active January 14, 2019 10:33
Sublime Key bindings (Linux) - BMS
[
{ "keys": ["f5"], "command": "refresh_folder_list" },
{ "keys": ["ctrl+k", "ctrl+r"], "command": "revert"},
{ "keys": ["ctrl+alt+o"], "command": "prompt_open_folder" },
{ "keys": ["ctrl+k", "ctrl+m"], "command": "toggle_menu"},
{ "keys": ["ctrl+k", "ctrl+p"], "command": "toggle_minimap"},
{ "keys": ["ctrl+k", "ctrl+space"], "command": "set_setting", "args": {"setting": "draw_white_space", "value": "all"} },
{ "keys": ["ctrl+k", "ctrl+space", "ctrl+space"], "command": "set_setting", "args": {"setting": "draw_white_space", "value": "none"} },
{ "keys": ["ctrl+0"], "command": "reset_font_size" },
{ "keys": ["ctrl+k", "ctrl+r", "ctrl+8"], "command": "set_setting", "args": {"setting": "rulers", "value": [80]} },
@pixmin
pixmin / codi3-challenge1.md
Last active May 17, 2018 09:44
Codi #3 - Challenge 1

Par où commencer une intégration + Challenge 1

Structure

code/
  challenge1/
    index.html
      css/style.css
      img/
@pixmin
pixmin / codi3-challenge1-bis.md
Last active May 17, 2018 09:47
Codi #3 - Challenge 1 - Reset
@pixmin
pixmin / codi3-forms.md
Last active May 23, 2018 09:51
Codi #3 Formulaires

Codi 3 - Forms

Balise sup pour les champs required

<form action="" method=""> action vs method (post|get)

required > input

Multiple classes, id and classes

@pixmin
pixmin / codi3-challenge2-submenu.md
Last active May 23, 2018 12:36
Codi #3 - Challenge 2 (submenu)

Challenge 2 - CSS submenu

Live demo with ul > li > ul > li

#menu > li {
    display: inline-block;
    position: relative;
    width: 10em;
}
@pixmin
pixmin / css-display-inline-block.md
Created May 23, 2018 14:48
CSS - display: inline-block

html

<section>
    <article>
        <h2>un h2</h2>
        <p> un paragraph un paragraph un paragraph un paragraph</p>
    </article>
    <article>
        <h2>un h2</h2>
 un paragraph
@pixmin
pixmin / Codi3-RWD-mediaqueries.md
Last active May 30, 2018 13:49
Codi #3 Responsive Web Design & Media queries
@pixmin
pixmin / Codi3-css-animations.md
Last active May 30, 2018 09:17
Codi #3 CSS Animations & Transitions

CSS Animations & Transitions

Transitions

Depart > Fin

  • transition-property
  • transition-duration s/ms
  • transition-timing-function
  • transition-delay
@pixmin
pixmin / prepare-commit-msg
Last active July 5, 2018 08:28
GIT Prepare Commit message with part of branch name
#!/bin/sh
#
# Automatically adds Redmine task reference to every commit message.
# Ex branch: dev-12345
# Will result in:
# Refs #12345 [rest of commit message]
#
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME=$(echo $BRANCH_NAME | sed -e 's/dev-//g') # Remove "dev-" part