This file contains hidden or 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
| <!doctype html> | |
| <html lang="fr"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Titre de la page</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <div id="app"> | |
| <nav> |
This file contains hidden or 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
| const Axios = require('axios') | |
| exports.startToEndProcessQuery = function (req, res) { | |
| return Axios.get('/explore.articlesearch.v1/favouriteSearch?edismax=true&storeId=00016&language=fr-FR&country=FR&query=' + req.params.str + '&rows=1000&page=1&profile=orSearch&null&__t=1541347156148') | |
| .then(function (response) { | |
| let stringIds = '' | |
| let limits = response.data.regularResults.resultIds.length > 50 ? 50 : response.data.regularResults.resultIds.length | |
| for (let i = 0; i < limits; i++) { | |
| stringIds += response.data.regularResults.resultIds[i] + '&ids=' | |
| } |
This file contains hidden or 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
| let removeDuplicate = (v, i, a) => a.indexOf(v) === i | |
| async function getSymbolsNames (quoteAsset = 'BTC') { | |
| // exchangeInfo : timezone , serverTime , rateLimits , exchangeFilters , symbols | |
| // symbolsInfo : symbol, baseAsset, quoteAsset, status, icebergAllowed, orderTypes, filters | |
| // orderTypes : [ 'LIMIT', 'LIMIT_MAKER', 'MARKET', 'STOP_LOSS_LIMIT', 'TAKE_PROFIT_LIMIT' ] | |
| let exchangeInfo = await client.exchangeInfo() | |
| let symbolsInfo = exchangeInfo.symbols | |
| symbolsInfo = symbolsInfo.filter(elem => elem.status === 'TRADING') | |
| symbolsInfo = symbolsInfo.filter(elem => elem.quoteAsset === quoteAsset) |
This file contains hidden or 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
| const express = require('express') | |
| const router = express.Router() | |
| const wrapper = require('../../wrapper') | |
| const config = require('../../config') | |
| const requestBuilder = require('../../utils/requestBuilder') | |
| router.get('/', (req, res) => { | |
| res.render('playlists.ejs') | |
| }) |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct { | |
| char auteur[10]; | |
| char contenu[10]; | |
| } T_livre; | |
| int main () { | |
| T_livre tab[10]; // 10 * 20 octets |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| struct conteneur { | |
| struct contenu1* one; | |
| struct contenu2* two; | |
| }; | |
| struct contenu1 { | |
| int couleur; |
This file contains hidden or 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"> | |
| <style> | |
| header { | |
| display: flex; | |
| width: 1000px; | |
| height: 200px; | |
| border: 1px solid red; | |
| } |
This file contains hidden or 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
| import sys | |
| from contextlib import contextmanager | |
| from io import StringIO | |
| @contextmanager | |
| def captured_output(): | |
| new_out = StringIO() | |
| old_out = sys.stdout | |
| try: | |
| sys.stdout = new_out |
This file contains hidden or 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
| from bs4 import BeautifulSoup | |
| import requests | |
| import regex | |
| def get(url): | |
| mycontent = requests.get(url) | |
| soup = BeautifulSoup(mycontent.text, "html.parser") | |
| return soup | |
| # the links we want to visit |
This file contains hidden or 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
| <template> | |
| <v-container> | |
| <v-layout text-center wrap> | |
| <v-form v-model="valid"> | |
| <v-container> | |
| <v-row> | |
| <v-col cols="12" md="4"> | |
| <v-text-field | |
| v-model="title" | |
| label="Title" |