Skip to content

Instantly share code, notes, and snippets.

@Rovak
Rovak / Blobbed.cs
Last active August 19, 2016 08:22 — forked from bariloce/Blobbed.cs
NHibernate, Fluent.NHibernate and PostgreSql: How to map PostgreSql Json type using Fluent.NHibernate
[Serializable]
public class Blobbed<T> : IUserType where T : class
{
public new bool Equals(object x, object y)
{
if (x == null && y == null)
return true;
if (x == null || y == null)
return false;
@Rovak
Rovak / Controllers_Home.php
Last active June 5, 2017 14:55
Minimal PHP Mvc
<?php
// path: ./Controllers/Home.php
namespace Controllers;
class Home extends \AbstractController {
// Index Page => bootstrap.php/home/index
public function index() {
return $this->render("index", [
import React from "react";
import classnames from "classnames";
const styles = {
error: {
icon: "fad fa-exclamation-triangle text-red-500",
bg: "bg-red-50",
mainText: "text-red-800",
subText: "text-red-700",
},