// jQuery
$(document).ready(function() {
// code
})
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
/* Start Ajax */ | |
let getHttpRequest = function () { | |
let httpRequest = false; | |
httpRequest = new XMLHttpRequest(); | |
if (!httpRequest) { | |
alert('Abandon :( Impossible de créer une instance XMLHTTP'); | |
return false; | |
} |
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": "Cobalt2", | |
"files.autoSave": "onFocusChange", | |
"editor.fontSize": 17, | |
"explorer.openEditors.visible": 0, | |
"workbench.editor.enablePreview": false, | |
"editor.minimap.enabled": false, | |
"workbench.activityBar.visible": false, | |
"sublimeTextKeymap.promptV3Features": true, | |
"editor.renderIndentGuides": false, |
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
:hammer_and_pick: FIX: text | |
:fire: NEW: text | |
:arrows_clockwise: IMPROVE: text |
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
require('dotenv').config(); | |
const gql = require('graphql-tag'); | |
const ApolloClient = require('apollo-boost').ApolloClient; | |
const fetch = require('cross-fetch/polyfill').fetch; | |
const createHttpLink = require('apollo-link-http').createHttpLink; | |
const InMemoryCache = require('apollo-cache-inmemory').InMemoryCache; | |
const client = new ApolloClient({ | |
link: createHttpLink({ | |
uri: process.env.API, | |
fetch: fetch |
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
Get in this machine bash : docker exec -it <containerID or Name> /bin/bash | |
remove all containers and images at once : docker container rm $(docker container ls -aq) --force && docker rmi $(docker images -a -q) | |
reload nginx : docker container exec <containerID or Name> nginx -s reload | |
reload nginx in ubuntu : /etc/init.d/nginx reload | |
docker-compose exec app composer install | |
sudo docker container rm $(sudo docker container ls -aq) --force && sudo docker rmi $(sudo docker images -a -q) | |
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": "Cobalt2", | |
"editor.fontFamily": "Victor Mono", //i.e. add "Medium" | |
"editor.fontLigastures": true, | |
//"editor.fontWeight": "600", //To make it even bolder (Though optional) | |
"files.autoSave": "onFocusChange", | |
"editor.fontSize": 18, | |
"editor.cursorBlinking": "expand", | |
"explorer.openEditors.visible": 0, | |
"workbench.editor.enablePreview": false, |
OlderNewer