This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getString(from, to) { | |
let f = new Intl.DateTimeFormat('fr', {hour:'numeric',minute:'numeric'}).format(from) | |
let t = new Intl.DateTimeFormat('fr', {hour:'numeric',minute:'numeric'}).format(to) | |
return `${f} à ${t}` | |
} | |
/** | |
* Generes les horaires à partir d'une heure de début de journée | |
* | |
* @param {number} start_hour L'heure de début. ex : 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getString(from, to) { | |
let f = new Intl.DateTimeFormat('fr', {hour:'numeric',minute:'numeric'}).format(from) | |
let t = new Intl.DateTimeFormat('fr', {hour:'numeric',minute:'numeric'}).format(to) | |
return `${f} à ${t}` | |
} | |
/** | |
* Generes les horaires à partir d'une heure de début de journée | |
* | |
* @param {number} start_hour L'heure de début. ex : 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getString(from, to) { | |
let f = new Intl.DateTimeFormat('fr', {hour:'numeric',minute:'numeric'}).format(from) | |
let t = new Intl.DateTimeFormat('fr', {hour:'numeric',minute:'numeric'}).format(to) | |
return `${f} à ${t}` | |
} | |
/** | |
* Generes les horaires à partir d'une heure de début de journée | |
* | |
* @param {number} start_hour L'heure de début. ex : 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var allow = function(e){ | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('paste', allow, true); | |
document.addEventListener('copy', allow, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "TSCompileAll", | |
"type": "shell", | |
"command": "./node_modules/.bin/tsc --watch --noEmit --project .", | |
"problemMatcher": ["$tsc-watch"] | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syn on | |
set mouse=a | |
set showcmd | |
set cursorline | |
set number | |
color happy_hacking | |
" git clone https://github.com/YorickPeterse/happy_hacking.vim.git $HOME/.vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open ~/Library/Preferences/com.apple.dock.plist | |
killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias code='open $@ -a "Visual Studio Code"' | |
alias t=touch | |
alias m=mkdir | |
alias vzsh='vi $HOME/.zshrc' | |
alias szsh='source $HOME/.zshrc' | |
alias dm=docker-machine | |
alias dci='docker rmi -f $(docker images -qa)' | |
alias dcc='docker rm -f $(docker ps -aq)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// removes your box from the page so you don't get removed from the group | |
$$('[data-name=GroupProfileGridItem]')[0].remove(); | |
// member action dropdowns | |
const actions = $$('.adminActions'); | |
// open all dropdowns so they're added to the DOM | |
for (var i = 0; i < actions.length; i++) { | |
$$('.adminActions button')[i] && $$('.adminActions button')[i].click(); | |
} |