Skip to content

Instantly share code, notes, and snippets.

View EricCote's full-sized avatar

Eric Cote EricCote

View GitHub Profile
Gare aux changements historiques, car ils vont affecter les identifiants des commits et pourraient affecter des gens qui travaillent sur leur branches.
git revert (sécuritaire. Ne touche pas aux commits existants, créé un nouveau commit qui ramène à un état précédent.)
git cherry-pick (pas sécuritaire. Permet de commiter certains fichiers dans le sens contraire du merge)
git rebase (pas sécuritaire. Fusionne des commits)
git reset (pas sécuritaire. Permet de reculer en arrière comme revert, mais perd les derniers commits.)
@EricCote
EricCote / A - Lab 1.txt
Last active January 16, 2017 18:46
Cours Web api Lab 1
Pour le lab 1!
@EricCote
EricCote / A - Lab 2.txt
Last active December 5, 2016 22:44
Web Api Lab 2
Pour le lab 2
@EricCote
EricCote / vs project cleanup
Last active December 19, 2016 17:23
cleanup VS projects
dir bin -Directory -recurse | rd -Recurse -Force
dir obj -Directory -recurse | rd -Recurse -Force
dir packages -Directory -recurse | rd -Recurse -Force
dir .vs -Directory -Hidden -recurse | rd -Recurse -Force
dir *.mdf -file -recusre | del -force
dir *.ldf -file -recusre | del -force
@EricCote
EricCote / Console.cs
Last active January 16, 2017 20:14
WebApi Client
static void Main(string[] args)
{
HttpClient client = new HttpClient();
client.BaseAddress =new Uri("http://localhost:52516/api/abonnement");
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(
new MediaTypeWithQualityHeaderValue("application/json"));
@EricCote
EricCote / A - Lab 4.txt
Last active January 17, 2017 02:00
Web Api Lab 4
Pour le lab 4
@EricCote
EricCote / A - Web Api Lab 5.txt
Last active February 16, 2017 22:03
Web Api Lab 5
Pour le lab 5
@EricCote
EricCote / employes.js
Last active February 22, 2017 20:55
Mercredi
/// <reference path="jquery-3.1.1.js" />
$(function () {
$("#btnEmployes").click(function () {
var httpRequest = new XMLHttpRequest();
httpRequest.addEventListener("readystatechange",
function () {
if (httpRequest.readyState ===
XMLHttpRequest.DONE) {
https://raw.githubusercontent.com/jquery/jquery-ui/master/ui/i18n/datepicker-fr-CA.js
@EricCote
EricCote / menu bootstrap.html
Created March 29, 2017 15:29
menu bootstrap
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Project name</a>