Skip to content

Instantly share code, notes, and snippets.

View After.vue
<template functional>
<Component
:is="props.tag || ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'][props.level - 1]"
:ref="data.ref"
class="font-light leading-tight"
:class="{
'text-3xl sm:text-4xl md:text-5xl': (props.size || props.level) === 1,
'text-2xl sm:text-3xl md:text-4xl': (props.size || props.level) === 2,
'text-1xl sm:text-2xl md:text-3xl': (props.size || props.level) === 3,
'text-xl sm:text-1xl md:text-2xl': (props.size || props.level) >= 4,
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