Skip to content

Instantly share code, notes, and snippets.

<?php
$f = function($a) {
switch(0) {
case $a % 15:
return 'FizzBuzz';
case $a % 3:
return 'Fizz';
case $a % 5:
return 'Buzz';
@L-P
L-P / libssh_std_thread.cpp
Last active August 29, 2015 14:01
C++11 thread support for the SSH Library.
/**
* C++11 thread support for the SSH Library.
* Copyright (c) 2014 Léo Peltier <lpeltier@ivsweb.com>
*/
#include <mutex>
#include <thread>
#include <libssh/callbacks.h>
#include "libssh_std_thread.hpp"
@L-P
L-P / Makefile
Last active August 29, 2015 14:00
Strict Makefile
#### PROJECT SETTINGS ####
# The name of the executable to be created
BIN_NAME :=
# Compiler used
CXX ?= g++
# Extension of source files used in the project
SRC_EXT = cpp
# Path to the source directory, relative to the makefile
SRC_PATH = src
# Space-separated pkg-config libraries used by this project