Skip to content

Instantly share code, notes, and snippets.

View dnando's full-sized avatar

Nando dnando

View GitHub Profile
@dnando
dnando / ui.cfc
Last active August 11, 2016 19:25
Component core of multilingual system
<cfcomponent accessors="true">
<cfproperty name="uiDataSource" default="uiDataSource" />
<cfscript>
public any function rt( required string label, string queryString, string frameworkAction, string lan = session.lan ) {
/*
this function takes the label passed into it, hashes it, and looks it up in the structure variables.t ( generated by loadTerms() below )
if the term is not found in the user's language, arguments.label is rendered instead
note that labels are case sensitive because a unique hash is generated for every case variation of a given string
if the user has permission to edit the UI terms and arguments.queryString exists
the label is rendered as a link to usr.editTerm&th=#termHash#&or=#origin# ( if the hash of arguments.label exists )
@dnando
dnando / nginx.conf
Created February 3, 2017 19:33 — forked from tonyjunkes/nginx.conf
Server portion for setting up a proxy to Lucee with rewrite to have index.cfm omitted for SES.
http {
...
server {
listen 80;
server_name mysite.local www.mysite.local;
root C:\websites\mysite\www;
index index.cfm;
@dnando
dnando / gist:7d6ad8c44c1bdb97bf3f1646dfe9f20b
Created February 22, 2019 15:20
Subsystems stack overflow error - stacktrace
request.exception
Catch
Entries: 12
additional
Struct (ordered)
Cause
Struct
additional
Struct (ordered)
Detail