Skip to content

Instantly share code, notes, and snippets.

@samthecodingman
samthecodingman / adminTaskFunction.js
Last active November 4, 2017 06:29
Defines a helper class to create Firebase Functions that handle recurring tasks that are triggered using the Firebase Realtime Database.
/*! adminTaskFunction.js | Samuel Jones 2017 | MIT License | github.com/samthecodingman */
/**
* @file Defines a helper class to create Firebase Functions that handle recurring tasks that are triggered using the Firebase Realtime Database.
* @author Samuel Jones (github.com/samthecodingman)
*/
const functions = require('firebase-functions')
const lodashGet = require('lodash').get;
@namannik
namannik / MGLMapView+MBTiles.swift
Last active December 4, 2024 10:27
MGLMapView+MBTiles
import Foundation
import Mapbox
import SQLite
// MARK: MbtilesSource
enum MBTilesSourceError: Error {
case CouldNotReadFileError
case UnknownFormatError
case UnsupportedFormatError
@typebrook
typebrook / MBTilesServer.kt
Last active March 18, 2025 05:50
How to make MBTiles valid on Mapbox Android SDK #mbtiles #android #mapbox
package com.example.sample.offline
import android.util.Log
import java.io.BufferedReader
import java.io.ByteArrayOutputStream
import java.io.FileNotFoundException
import java.io.PrintStream
import java.net.ServerSocket
import java.net.Socket
import kotlin.math.pow
@kelset
kelset / build-time-improvements.md
Last active June 23, 2025 14:22
This is kind of a blogpost about my experience of diving deep to improve some timings for an iOS React Native app

Improving times for both iOS build and CI for a React Native app

Intro

Hello there.

So, if you are here you probably saw my previous tweet where I asked for tips & tricks on improving the timing on an iOS/React Native app build time.

What will follow was how I mixed those suggestions + some good old GoogleSearch-fu + me deep diving on this for ~2 days.