Skip to content

Instantly share code, notes, and snippets.

View blazorin's full-sized avatar
⛏️
Building

Alberto blazorin

⛏️
Building
View GitHub Profile
@blazorin
blazorin / ClockService.java
Created December 12, 2023 12:29
ClockService
package com.albertoromero.timeclock.services;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import androidx.annotation.Nullable;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
@blazorin
blazorin / script.sh
Created December 1, 2022 20:23
Fix differences between architectures on Xcode publish
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
# This script loops through the frameworks embedded in the application and
# removes unused architectures.
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
do
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH"
@blazorin
blazorin / install.sh
Last active September 3, 2022 12:56
Homebrew same install location for M1 Macs
#!/bin/bash
# We don't need return codes for "$(command)", only stdout is needed.
# Allow `[[ -n "$(command)" ]]`, `func "$(command)"`, pipes, etc.
# shellcheck disable=SC2312
set -u
abort() {
printf "%s\n" "$@" >&2
@blazorin
blazorin / FeatureRow.qml
Created August 18, 2022 20:09
Un Row que contiene Icono, texto bold destacado, y texto normal
import QtQuick 2.0
import Felgo 3.0
Row {
id: featureRow
property alias boldText: boldTextElem.text
property alias mainText: mainText.text
// Visibility