Skip to content

Instantly share code, notes, and snippets.

package org.zalando.problem;
import com.google.gag.annotation.remark.Hack;
import com.google.gag.annotation.remark.OhNoYouDidnt;
import org.apiguardian.api.API;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;
import java.net.URI;
import java.util.Collections;
@leomelin
leomelin / test_original
Created April 4, 2016 15:00
Wrong indent
const TestJSX =
<div>
<p>Hello, this is a test</p>
</div>
const Test2JSX = props => {
return (
<div>
<p>This is another test</p>
{props.children}
@leomelin
leomelin / gist:1ad4b29b4a38464234ec
Created January 26, 2015 10:32
dynamic svg gradient generator with PHP
public function generateSvgGradientAction() {
$from_stop = isset($_GET['from']) ? $_GET['from'] : '000000';
$to_stop = isset($_GET['to']) ? $_GET['to'] : '000000';
header('Content-type: image/svg+xml; charset=utf-8');
echo '<?xml version="1.0"?>
';