Skip to content

Instantly share code, notes, and snippets.

View SamirBoulil's full-sized avatar
🏠
Working from home

Samir SamirBoulil

🏠
Working from home
View GitHub Profile
@rhukster
rhukster / xdebug
Last active January 13, 2022 20:51
#!/usr/bin/env bash
# http://github.com/w00fz/xdebug-osx
#
# @author Djamil Legato http://github.com/w00fz/xdebug-osx
# @modified Andy Miller - Homebrew/core compatibility
# @license MIT
# @version 1.3
app="$(basename "$0")"
command="$1"
@rhukster
rhukster / sphp.sh
Last active March 30, 2024 10:41
Easy Brew PHP version switching (Now moved to https://github.com/rhukster/sphp.sh)
#!/bin/bash
# Creator: Phil Cook
# Modified: Andy Miller
#
# >>> IMPORTANT: Moved to: https://github.com/rhukster/sphp.sh
# >>> Kept here for legacy purposes
#
osx_major_version=$(sw_vers -productVersion | cut -d. -f1)
osx_minor_version=$(sw_vers -productVersion | cut -d. -f2)
osx_patch_version=$(sw_vers -productVersion | cut -d. -f3)
@juliensnz
juliensnz / Sudoku.php
Last active March 9, 2016 22:17
Sudoku resolver and generator
<?php
namespace Sudoku;
/**
* Class to resolve and generate sudoku grids
*/
class Sudoku
{
/** Grid size */
@slawekkolodziej
slawekkolodziej / touch-tooltip-fix.js
Created June 24, 2012 14:26
Highcharts tracker now don't prevent default behavior (like scrolling on touch devices).
Highcharts.Chart.prototype.callbacks.push(function(chart) {
var hasTouch = document.documentElement.ontouchstart !== undefined,
mouseTracker = chart.tracker,
container = chart.container,
mouseMove;
mouseMove = function (e) {
// let the system handle multitouch operations like two finger scroll
// and pinching
if (e && e.touches && e.touches.length > 1) {