Skip to content

Instantly share code, notes, and snippets.

@chimericdream
chimericdream / FizzBuzz.php
Last active August 29, 2015 14:20
FizzBuzz challenge
<?php
array_map(function($num) {
$f = function() {
echo 'fizz';
};
$b = function() {
echo 'buzz';
};
$n = function($num) {
echo $num;
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@everzet
everzet / http_api.feature
Created April 22, 2011 09:50
REST API feature example
Feature: REST API
In order to be able to build my own tool for web application
As a developer
I need to have clean REST API for application
Scenario: List all users
Given application has users:
| name | email |
| ivan | ivan@ex.com |
| dima | dima@ex.com |