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 paginate (array, page_size, page_number) { | |
--page_number; // because pages logically start with 1, but technically with 0 | |
return array.slice(page_number * page_size, (page_number + 1) * page_size); | |
} |
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
{"lastUpload":"2019-01-23T14:08:52.032Z","extensionVersion":"v3.2.4"} |
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
ZSH_THEME="powerlevel9k/powerlevel9k" | |
########## | |
# CONFIG POWERLEVEL | |
########## | |
POWERLEVEL9K_MODE='awesome-patched' | |
POWERLEVEL9K_VCS_GIT_GITHUB_ICON='\uE1AA' |
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
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>regex terms and conditions</title> | |
</head> | |
<body></body> | |
<script> | |
var regex = /.*./g; |
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
#!/bin/bash | |
URL=$(curl -s 'https://api.github.com/user/repos?sort=pushedaccess_token=YOUR_PERSONNAL_GITHUB_TOKEN' | jq '.[] | .ssh_url' ); | |
URL=${URL[@]//\"/}; | |
clone(){ | |
echo "Git clone: '$@'" | |
git clone $@ | |
REPO=$@ | |
temp=$(echo "$REPO" | grep -Po '(?<=\/)(.*?)(?=\.)') | |
echo "Now you can do :" |
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
{ | |
"monitoring": "https://github.com/aksakalli/gtop", | |
"zsh": "http://www.zsh.org", | |
"oh-my-zsh": "https://github.com/robbyrussell/oh-my-zsh", | |
"oh-my-zsh cheatsheet": "https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet", | |
"path visual studio code in .zshrc": "export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"", | |
"alias": | |
{ | |
"please": "sudo", | |
"monitor": "LANG=en_US.utf8 TERM=xterm-256color gtop", |
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
{ | |
"vue-snippet": "https://marketplace.visualstudio.com/items?itemName=hollowtree.vue-snippets", | |
"Vetur": "https://marketplace.visualstudio.com/items?itemName=octref.vetur", | |
"WakaTime": "https://marketplace.visualstudio.com/items?itemName=WakaTime.vscode-wakatime", | |
"JavaScript (ES6) code snippets": "https://marketplace.visualstudio.com/items?itemName=xabikos.JavaScriptSnippets", | |
"Nord": "https://marketplace.visualstudio.com/items?itemName=arcticicestudio.nord-visual-studio-code", | |
"Material Icon Theme": "https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme", | |
"Auto Rename Tag": "https://marketplace.visualstudio.com/items?itemName=arcticicestudio.nord-visual-studio-code", | |
"Auto Close Tag": "https://marketplace.visualstudio.com/items?itemName=formulahendry.auto-close-tag" | |
} |
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
"Basic Vue component": { | |
"prefix": "vue", | |
"body": [ | |
"<template>", | |
"</template>", | |
"$2", | |
"<script>", | |
"export default {", | |
" name: '',", | |
" data () {", |
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
{ | |
"workbench.colorTheme": "Nord", | |
"workbench.activityBar.visible": true, | |
"workbench.statusBar.visible": true, | |
"workbench.iconTheme": "material-icon-theme", | |
"window.zoomLevel": 0, | |
"emmet.useNewEmmet": false, | |
"emmet.syntaxProfiles": { | |
"javascript": "jsx", | |
"vue-html": "html", |
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
<HTML> | |
<HEAD> | |
<script type="text/javascript"> | |
function compterSylabeTexte() | |
{ | |
var voyelle = "aàâeëéèêiïouùy"; | |
var consonne = "bcçdfghjklmnpqrstvwxyz"; | |
var ponctuation = ",;:!?."; | |
var texte = document.getElementById("zoneTexte").value; |