Skip to content

Instantly share code, notes, and snippets.


Brian Matovu mtvbrianking

Block or report user

Report or block mtvbrianking

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View boost example of threads and interrupts.cpp
#include <boost/thread.hpp>
#include <iostream>
using namespace std;
void ThreadFunction()
int counter = 0;
mgirouard /
Created Jul 17, 2016
GuzzleHttp Exception Hierarchy
  • GuzzleException
    • SeekException
    • TransferException
      • RequestException ( RequestInterface ; ResponseInterface | null )
        • TooManyRedirectsException
        • ConnectException
        • BadResponseException
          • ServerException
          • ClientException
mcaskill / Function.Array-Group-By.php
Last active Aug 29, 2019
PHP : Groups an array by a given key
View Function.Array-Group-By.php
if (!function_exists('array_group_by')) {
* Groups an array by a given key.
* Groups an array into arrays by a given key, or set of keys, shared between all array members.
* Based on {@author Jake Zatecky}'s {@link array_group_by()} function.
* This variant allows $key to be closures.
josephok / client.c
Last active Sep 6, 2018
a stream socket server & client demo
View client.c
** client.c -- a stream socket client demo
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
greut / run.php
Created Apr 30, 2011
A web server in pure PHP (non-concurrent and concurrent)
View run.php
#!/usr/bin/env php
$app = function($request) {
$body = <<<EOS
<!DOCTYPE html>
<meta charset=utf-8>
<title>Hello World!</title>
alotaiba / Arduino TCP Server
Created Jan 24, 2011
A simple TCP server written in Python to control the Arduino board, it receives the signals over TCP connection, and sends them to the Arduino board using serial.
View Arduino TCP Server
#!/usr/bin/env python
# Copyright 2011 Abdulrahman Alotaiba
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
You can’t perform that action at this time.