Skip to content

Instantly share code, notes, and snippets.

View steveWinter's full-sized avatar

Steve Winter steveWinter

View GitHub Profile
---
- name: Ensure prerequsites are installed
apt:
name: [
'curl',
'gnupg',
'debian-keyring',
'debian-archive-keyring',
'apt-transport-https',
]
@steveWinter
steveWinter / image.js
Created July 23, 2019 07:26
Photo capture
var camera = require("nativescript-camera");
var imageSource = require('tns-core-modules/image-source');
var FileMakerDataAPI = require('../shared/FileMakerDataAPI');
var ImageCaptureManager = require('../shared/ImageCaptureManager');
var view = require("tns-core-modules/ui/core/view");
let fmConnection = new FileMakerDataAPI({
'server': '',
'username': '',
<?php
// namespace etc
class TextParser {
// other methods
public static function iconvUTF8($string) {
// see http://stackoverflow.com/questions/3371697/replacing-accented-characters-php
$map = array(