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
package org.dev.main; | |
import org.dev.MyClass; | |
public class Main { | |
/** |
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> | |
#include <time.h> | |
#include <stdbool.h> | |
#define MAX 300 | |
int t[MAX]; | |
int n; | |
// Exo 1 |
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
typedef struct noeud { | |
int info; | |
struct noeud *fg, *fm, *fd; | |
} NOEUD; | |
typedef NOEUD ARBRE_TERNAIRE; | |
int taille( NOEUD *arbre) { | |
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
static void Main(string[] args) | |
{ | |
string pattern = @"^\((0*([0-9]{1,2}|1[0-9]{2}|2[0-4][0-9]|25[0-5]),){2}0*([0-9]{1,2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])\)$"; | |
string input1 = @"(255,254,255)"; | |
string input2 = @"my color is (255,254,255) in rgb"; | |
input1 = Regex.Replace(input1, pattern, "MY_COLOR", RegexOptions.IgnoreCase); | |
input2 = Regex.Replace(input2, pattern, "MY_COLOR", RegexOptions.IgnoreCase); | |
Console.WriteLine(input1); // Result: "MY_COLOR" | |
Console.WriteLine(input2); // Result: "my color is (255,254,255) in rgb" |
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
Try | |
{ | |
} | |
catch (Exception exception) | |
{ | |
Log.Error(exception); | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | |
<ProductVersion>3.10</ProductVersion> | |
<ProjectGuid>91e4dc15-312a-4e90-bc1c-01de5dc99447</ProjectGuid> | |
<SchemaVersion>2.0</SchemaVersion> | |
<OutputName>CoreConsoleAppSetup</OutputName> | |
<OutputType>Package</OutputType> |
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
<?php | |
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); | |
function my_theme_enqueue_styles() { | |
wp_enqueue_style( 'child-style', get_stylesheet_uri(), | |
array( 'parenthandle' ), | |
wp_get_theme()->get('Version') // this only works if you have Version in the style header | |
); | |
} |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>net5.0-windows</TargetFramework> | |
<IsPackagable>false</IsPackagable> | |
</PropertyGroup> | |
<ItemGroup> | |
<Reference Include="Routindo.Contract"> | |
<HintPath>..\Libs\Routindo.Contract.dll</HintPath> |
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
static class SecureStringConverter | |
{ | |
public static SecureString ConvertToSecureString(this string password) | |
{ | |
if (password == null) | |
throw new ArgumentNullException("password"); | |
unsafe | |
{ | |
fixed (char* passwordChars = password) |
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
using System; | |
using System.Threading; | |
static class Program { | |
static void Main() { | |
Console.Write("Performing some task... "); | |
using (var progress = new ProgressBar()) { | |
for (int i = 0; i <= 100; i++) { | |
progress.Report((double) i / 100); |