Skip to content

Instantly share code, notes, and snippets.

View davidkudera's full-sized avatar

David Kudera davidkudera

View GitHub Profile
@hrach
hrach / dynamicReturnTypeMeta.json
Last active April 11, 2017 10:35
Dynamic Return Type
{
"methodCalls": [
{
"class": "\\Mockery",
"method": "mock",
"position": 0,
"mask": "%s|\\Mockery\\MockInterface"
},
{
"class": "\\Nette\\DI\\Container",
@milo
milo / github-webhook-handler.php
Last active October 29, 2024 15:45
GitHub Webhook Handler
<?php
/**
* GitHub webhook handler template.
*
* @see https://docs.github.com/webhooks/
* @author Miloslav Hůla (https://github.com/milo)
*/
$hookSecret = 's.e.c.r.e.t'; # set NULL to disable check
@dwayne
dwayne / facebook-setup.md
Last active December 26, 2015 05:59
Notes on building Facebook Page Tab applications.

Getting Started

The following instructions will get you started with a Facebook Page Tab application fit for development on your local machine.

  1. Navigate to https://developers.facebook.com/apps and click on Create New App.
  2. Enter your App Name (for e.g. "Hello World Dev") and your App Namespace (for e.g. "hello-world-dev"). Click continue.
  3. Solve the Captcha and click continue.
  4. You'd be taken to the basic settings of your new app. Under the Basic Info section, enter localhost for the App Domains section.
  5. Under Select how your app integrates with Facebook. Select Page Tab and enter the Page Tab details. See the following for an example:
  • Page Tab Name: Hello World Dev
@jbenet
jbenet / simple-git-branching-model.md
Last active April 17, 2025 09:30
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.