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
"default_search_provider": { | |
"synced_guid": "9DF246DB-4501-4E1D-B1AB-F219CD1332AB" | |
}, | |
"default_search_provider_data": { | |
"template_url_data": { | |
"alternate_urls": [ | |
"{google:baseURL}#q={searchTerms}", | |
"{google:baseURL}search#q={searchTerms}", | |
"{google:baseURL}webhp#q={searchTerms}", | |
"{google:baseURL}s#q={searchTerms}", |
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
import { useEffect, useState } from 'react'; | |
import { Movie } from '../marvel/common/MovieInterface'; | |
/* | |
intégré au navigateur | |
1. XmlHttpRequest (xhr Ajax) | |
2. Fetch API (promise based) | |
Librairies externes: | |
1. jQuery (ajax) |
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
import React from "react"; | |
import { Table } from "react-bootstrap"; | |
function TableCovid({ liste }) { | |
return ( | |
<Table> | |
<thead> | |
<tr> | |
<th>Pays</th> | |
<th>Cas total</th> |
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
CREATE PROCEDURE ExecuteInMultipleDataBase | |
@cmd nvarchar(1000) | |
AS | |
declare @databases table ( | |
name nvarchar(100) | |
); | |
INSERT INTO @databases (name) Values | |
('AdventureWorks'),('InternetSales'); |
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
$edgeEnterpriseMSIUri = 'https://edgeupdates.microsoft.com/api/products?view=enterprise' | |
$response = Invoke-WebRequest -Uri $edgeEnterpriseMSIUri -Method Get -ContentType "application/json" -UseBasicParsing -ErrorVariable InvokeWebRequestError | |
$jsonObj = ConvertFrom-Json $([String]::new($response.Content)) | |
$selectedIndex = [array]::indexof($jsonObj.Product, "Stable") | |
$LatestEdgeUrl = ($jsonObj[$selectedIndex].Releases | | |
Where-Object { $_.Architecture -eq "x64" -and $_.Platform -eq "Windows"} | |
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
curl https://github.com/microsoft/terminal/releases/download/v1.0.1401.0/Microsoft.WindowsTerminal_1.0.1401.0_8wekyb3d8bbwe.msixbundle --output terminal.msixbundle -L | |
.\terminal.msixbundle |
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
--SELECT * FROM Sys.Databases | |
--DROP DATABASE [C:\DEMO\ADVENTUREWORKS_DATA.MDF] | |
-- https://github.com/Microsoft/sql-server-samples/releases/download/adventureworks/AdventureWorksLT2016.bak | |
RESTORE DATABASE AdventureWorksLT2016 | |
FROM DISK='C:\Users\eric\Downloads\AdventureWorksLT2016.bak' | |
WITH | |
MOVE 'AdventureWorksLT2012_data' TO 'C:\Data\AdventureWorksLT_data.mdf', | |
MOVE 'AdventureWorksLT2012_log' TO 'C:\Data\AdventureWorksLT_log.mdf' |
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
USE [master]; | |
CREATE DATABASE AdventureWorks_Snapshot_1nov2017 | |
ON ( NAME = N'AdventureWorks', | |
FILENAME = N't:\snap.mdf' ) | |
AS SNAPSHOT OF AdventureWorks; | |
GO | |
------------------------------------- |
NewerOlder