Skip to content

Instantly share code, notes, and snippets.

View tounsils's full-sized avatar
🏆
Focusing

Ilyes Tounsi tounsils

🏆
Focusing
View GitHub Profile
@tounsils
tounsils / Soduko_tester.php
Last active November 8, 2018 13:05
Function that tests if the suduko is solvedor no
<?php
/**
* Created by PhpStorm.
* User: Tounsi
* Date: 30/10/2018
* Time: 11:59
*/
Function used_in_row($grid, $row, $num)
{
@tounsils
tounsils / Sudoku_solver_working.php
Created November 7, 2018 13:31
Sudoku Solver working 100%
<?php
/**
* Created by PhpStorm.
* User: PC16
* Date: 02/11/2018
* Time: 16:17
*/
class Sudoku {
private $comming_arr = array();
@tounsils
tounsils / power_of_two.php
Last active August 10, 2021 13:20
Write a PHP program to check if a given positive integer is a power of two.
<?php
/**
* Write a PHP program to check if a given positive integer is a power of two.
* Input : 4
*
*
* Example (positive):
* n = 32
* than in binary representation
@objarni
objarni / Install Gulp.txt
Last active January 16, 2023 13:30
Installing gulp in Windows
1. Install nodejs. https://nodejs.org/en/
2. Check npm (node package manager) is installed via command prompt:
$ npm
3. Install gulp:
$ npm install gulp --global
4. In relevant project folder, create 'gulpfile.js':
@rlandas
rlandas / gulpinstall.sh
Created August 21, 2015 06:02
GULP : Uninstalling and Installing GULP global and local
npm uninstall -g gulp
npm install -g gulp
npm uninstall --save-dev gulp
npm install --save-dev gulp