Skip to content

Instantly share code, notes, and snippets.

View fsans's full-sized avatar

Francesc Sans fsans

  • Indie developer
  • Barcelona (Spain)
  • 16:25 (UTC +02:00)
  • X @fsans
View GitHub Profile
@fsans
fsans / FMTimeHiRes.cpp
Last active November 9, 2018 08:55
FMTimeHiRes() plugin función
/*
* FMTimeHiRes.cpp
* PlugInTemplate
*
* Created by Francesc Sans on 16/07/12.
* Copyright 2012 Network BCN Software. All rights reserved.
*
* FMTimeHiRes({format})
*
* Returns Timestamp to microseconds precisión

Spring Boot app with REST API demo, using the following frameworks:

  • Java 8
  • SpringBoot
  • JPA & Hibernate
  • H2 & MySQL
  • Maven

Mac OSX

Instal.lat XCode descarregant l'app des de AppStore. A continuació instal.lar XCode Command Line Tools des de XCode>Preferences>General>Downloads>Components>Command Line Tools. (Es un proces llarg)

[recomanat] IDE Instal·lar Visual Studio Code, des de https://code.visualstudio.com/download Alternativament IntelliJ (trial), Eclipse (free) o altres.

FMCatalonia - Materials


How to get a full local copy of the FMCat materials repository

Create your local repository in any place you like

(NOTE: "FMCat" is just a sample name)

@fsans
fsans / FileMaker JWT generation.md
Last active January 2, 2024 13:11
Using server to server Oauth 2 JWT authentication within FileMaker. Contains a few FileMaker CF and implementation.

Server to Server JWT from FileMaker

JWT Anatomy

Using OAuth 2.0 for Server to Server Applications (Service Accounts)

General Flow

MonthNameLocale( fulldate; locale )

returns localized month name of "fulldate" to "locale" or system locale if param is empty)

Let ( 
[
	_month = Month (fulldate);
	_es = List("Enero";"Febrero";"Marzo";"Abril";"Mayo";"Junio";"Julio";"Agosto";"Septiembre";"Octubre";"Noviembre";"Diciembre");
	_ca = List("Gener";"Febrer";"Març";"Abril";"Maig";"Juny";"Juliol";"Agost";"Setembre";"Octubre";"Novembre";"Desembre");
@fsans
fsans / fms_custom_http.md
Last active April 13, 2021 17:08
Configure FMServer httpd to custom directory

Checked in FSM v19.2

This is the FM Server home... ( FMSERVER_ROOT )

/Library/FileMaker\ Server

This is the FM Server cwp root... ( FM_CWP_ROOT )

Provides (Spring) to/from FileMaker Input/output date serialization as Instant using any custom format ( ie. yyyy-MM-dd HH:mm:ss )

  • Always define dates as Instant in your java app or service
  • Define dates as Timestamp in FileMaker

your_root_package.config.ConfigurationProperties

Split

Convert custom list delimited by "delim" to FileMaker List (delimited by "¶")

Split( string; delim )

Substitute( Trim ( str ); [ delim; "¶" ] )