Skip to content

Instantly share code, notes, and snippets.

View leonardorame's full-sized avatar

Leonardo M. Ramé leonardorame

View GitHub Profile
@leonardorame
leonardorame / tabulatorhook.js
Last active April 1, 2024 15:07
Tabulator with Phoenix LiveView
Hooks.Tabulator = {
mounted() {
let me = this;
let selectable = 1;
if (this.el.dataset.selectable) {
selectable = JSON.parse(this.el.dataset.selectable);
}
let table = new Tabulator(this.el, {
columns: JSON.parse(this.el.dataset.columns),
selectable: selectable,
//
// ssrlib.cc (Server Side Rendering library)
//
// Copyright (c) 2022 InformeMedico.com.ar
//
//
#include <erl_nif.h>
#include <png.h>
#include <vector>
@leonardorame
leonardorame / ngAdmin Login
Created February 9, 2015 18:37
ng-admin login
/*
Small ng-admin config showing how to inject a Login controller when
a 401 error is returned by the server.
*/
(function () {
"use strict";
var app = angular.module('myApp', [