Skip to content

Instantly share code, notes, and snippets.

View Attributes.php
<?php
use ORM\{Entity, Field, Id, AutoIncrement};
use Validators\{MaxLength, Email, NotEmpty};
use Auth\{EncodePassword};
class User attributes(
Entity(table = 'users')
)
{
View allong.php
<?php
function id(callable $fn) {
if (is_string($fn)) {
return "function_$fn";
} elseif (is_array($fn)) {
return "method_{$fn[0]}::{$fn[1]}";
} elseif ($fn instanceof \Closure) {
return "closure_".spl_object_hash($fn);
}
View runfile.js
const {run} = require('runjs')
const fractal = require('./frontend/fractal.js')
const task = {
'build': () => {
task['webpack:build']()
task['fractal:build']()
},
'watch': () => {
task['webpack:watch']()
View keybase.md

Keybase proof

I hereby claim:

  • I am CHH on github.
  • I am chh (https://keybase.io/chh) on keybase.
  • I have a public key whose fingerprint is F6E8 DB92 D268 19A8 18BF EA8F 551C 6B7C FF55 E3C7

To claim this, I am signing this object:

@CHH
CHH / atincometax.js
Created Jul 9, 2014
Google Apps Script for adding a Sheets function for estimating the austrian income tax
View atincometax.js
function atincometax(income) {
var url = "http://chh-at-tax.herokuapp.com/income-tax";
income = parseInt(income, 10);
var response = UrlFetchApp.fetch(url, {
method: "post",
payload: JSON.stringify({income: income})
});
View gist:7070997
Process: Maia_Alpha [2437]
Path: /Users/USER/Downloads/Maia_MountainLion_0_35.app/Contents/MacOS/Maia_Alpha
Identifier: MaiaGame.Maia-Alpha
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd [229]
User ID: 501
Date/Time: 2013-10-20 17:18:52.748 +0200
OS Version: Mac OS X 10.8.5 (12F45)
@CHH
CHH / buildpack.sh
Created Aug 28, 2013
How to test the unstable branch of the PHP buildpack.
View buildpack.sh
heroku config:set BUILDPACK_URL=git://github.com/CHH/heroku-buildpack-php#development
git commit -m "Rebuild" --allow-empty
git push heroku master
heroku open
View gist:6039169
autoconf
bash
cabextract
cloog-ppl015
cmake
ctags
fortune
freetype
gawk
gdbm
@CHH
CHH / README.md
Last active Dec 15, 2015
Configuring a Heroku Buildpack via the composer.json?
View README.md

Unofficial Heroku Buildpack for PHP

This Heroku Buildpack adds more advanced support for PHP.

  • Runs apps written for both PHP 5.4 and 5.3
  • Supports Composer dependencies and caching of the vendor/ directory for fast deploys
  • Simple configuration via the project's composer.json
  • Stable and fast setup using NGINX, PHP-FPM and Zend Optimizer Plus
You can’t perform that action at this time.