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
[TestClass] | |
public class UnitTest1 | |
{ | |
[TestMethod] | |
public void ListeVide_Renvoie_Zero() | |
{ | |
ChercheurDeNombre chercheur = new ChercheurDeNombre(); | |
int nombrePlusProche = chercheur.TrouveNombrePlusProcheDeZero(new List<int>()); | |
Assert.AreEqual(0,nombrePlusProche); | |
} |
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 tour; | |
tour = new Tour({ | |
name: "tour", | |
container: "body", | |
smartPlacement: true, | |
backdrop: "true", | |
backdropPadding: 5, | |
template: "" + | |
"<div class='popover' role='tooltip'>" + | |
"<div class='arrow'></div>" + |
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
static void Main(string[] args) | |
{ | |
Type t = Type.GetTypeFromProgID("Shell.Application"); | |
dynamic shell = Activator.CreateInstance(t); | |
var objFolder = shell.NameSpace(@"F:\Development\JunkProjects\TaylorTags\TaylorTags\images"); | |
List<string> arrHeaders = new List<string>(); | |
for (int i = 0; i < short.MaxValue; i++) |
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
using (var context = new ClientContext(ConfigurationManager.AppSettings["onedrive:urlSite"])) | |
{ | |
var passWord = new SecureString(); | |
foreach (var c in ConfigurationManager.AppSettings["onedrive:password"]) passWord.AppendChar(c); | |
context.Credentials = new SharePointOnlineCredentials(ConfigurationManager.AppSettings["onedrive:login"], passWord); | |
Web web = context.Web; | |
// Vous pourrez ainsi intéragir sur le contenu de votre site | |
// Ici, nous allons récupérer l'ensemble des dossiers à la racine de la bibliothèque par défaut, ayant pour nom "Documents" | |
List docs = web.Lists.GetByTitle("Documents"); |