Skip to content

Instantly share code, notes, and snippets.

@zorfling
zorfling / README.md
Created January 30, 2020 08:35 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
<?php
// in PHP arrow functions look like this
// long version required currently
function array_values_from_keys($arr, $keys) {
return array_map(
function ($x) use ($arr) { return $arr[$x]; }, // long
$keys
);
};
// in JavaScript arrow functions looks like this
// add numbers and return the result
const addSomeNumbers = (a, b) => a + b;
// echo out a message and return the input parameter
const doTheThing = theThing => {
console.log(`I'm doing ${theThing}`);
return theThing;
};

Keybase proof

I hereby claim:

  • I am zorfling on github.
  • I am zorfling (https://keybase.io/zorfling) on keybase.
  • I have a public key whose fingerprint is D531 1454 4530 723E 5210 D65F 3B06 6CAD 786F 9B05

To claim this, I am signing this object:

@zorfling
zorfling / designer.html
Created November 20, 2014 22:32
designer
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;