Skip to content

Instantly share code, notes, and snippets.

View wRadion's full-sized avatar

wRadion wRadion

View GitHub Profile
@wRadion
wRadion / Programmation.txt
Created April 6, 2020 13:00
Apprendre la programmation : Exercices, Concepts, Notions...
Devinez le nombre
Afficher un message dans la console
Conditions
Boucles
Récupérer l'entrée utilisateur
Variables
Parser une chaîne de caractère en nombre entier
Pendu
Afficher un message dans la console
@wRadion
wRadion / Program.cs
Last active April 2, 2020 14:00
Cours Jour 4 - Morpion (sans classes)
using System;
namespace CoursJour4
{
class Program
{
static void Main(string[] args)
{
// Déclare et initialise la grille
char[,] grid = new char[3, 3];
@wRadion
wRadion / Program.cs
Created March 31, 2020 16:07
Cours Jour 2 - Pendu
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoursJour2
{
class Program
{
@wRadion
wRadion / Program.cs
Created March 31, 2020 13:13
Cours Jour 2 - Guess The Number
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoursJour2
{
class Program
{
@wRadion
wRadion / MainWindow.xaml.cs
Created March 12, 2020 18:36
Create SQLite Database C#
using System;
using System.Collections.Generic;
using System.Data.SQLite;
using System.Text;
using System.Windows;
namespace SQLiteTest
{
public class Text
{
@wRadion
wRadion / archlinux_install.sh
Last active July 1, 2018 09:28
Automatically install ArchLinux for a VirtualBox virtual machine.
#! /bin/sh
# Download this file easily:
# wget -O install.sh https://tinyurl.com/wralvm12
# chmod +x install.sh
C_RESET="\e[0;0m"
B_BLACK="\e[1;30m"
B_YELLOW="\e[1;33m"
B_CYAN="\e[1;36m"
@wRadion
wRadion / benchmark_alias_monkey_patch.rb
Last active January 9, 2017 16:10
Benchmarking Ruby's monkey patch vs alias method vs conventional ways to test Array content.
#! /usr/bin/env ruby
require 'benchmark'
class Array
def blank?
empty?
end
alias :blankk? :empty?