Skip to content

Instantly share code, notes, and snippets.

Maciej Łebkowski mlebkowski

Block or report user

Report or block mlebkowski

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
@robotlolita
robotlolita / loops-are-evil.md
Last active Jan 31, 2019
Why `xs.each(f)` should not be considered a "loop".
View loops-are-evil.md

First and foremost, let's take a look at the following pieces of code. The first one is something you should be rather familiar with, and the second one is also a somewhat familiar idiom these days (at least in languages with higher-order functions):

// Example 1:
30 + 12

// Example 2:
xs.map(f)
@rtomayko
rtomayko / testlib.sh
Last active Nov 15, 2018
Simple shell command language test library.
View testlib.sh
#!/bin/sh
# Usage: . testlib.sh
# Simple shell command language test library.
#
# Tests must follow the basic form:
#
# begin_test "the thing"
# (
# set -e
# echo "hello"
@mlebkowski
mlebkowski / build.xml
Created Sep 10, 2012
Default Ant File
View build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="Your Project Name" default="build">
<target name="build" depends="prepare,phpunit" />
<target name="clean" description="Cleanup build artifacts">
<delete dir="${basedir}/build/api" />
<delete dir="${basedir}/build/code-browser" />
<delete dir="${basedir}/build/coverage" />
<delete dir="${basedir}/build/logs" />
@bjhess
bjhess / pull_request_webhook.md
Created May 18, 2012
The way I had to add a github repo webhook for pull requests
View pull_request_webhook.md

This is more complex than necessary.

GitHub webhooks for a URL by default only fire on repo pushes. There appears to be no way in the web UI to set up webhooks for other events. And so we go to the API. I prefer to do this type of thing with Hurl.

{
  "name": "web",
  "active": true,
@ziadoz
ziadoz / awesome-php.md
Last active Nov 5, 2019
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
View awesome-php.md
You can’t perform that action at this time.