Skip to content

Instantly share code, notes, and snippets.

View hectorddmx's full-sized avatar
🎯
Focusing

Hector De Diego hectorddmx

🎯
Focusing
View GitHub Profile
@hectorddmx
hectorddmx / flutter-para-ios-developers.md
Created February 28, 2024 01:54
Flutter para un iOS Developer
@hectorddmx
hectorddmx / format_date_with_offset_test.dart
Last active September 21, 2023 03:48 — forked from j0nscalet/format_date_with_offset_test.dart
Forked to manually support Z
import 'package:test/test.dart';
import 'package:intl/intl.dart';
import 'package:timezone/timezone.dart';
import 'package:timezone/data/latest.dart';
// A DateTime in dart contains the TimezoneOffset from UTC/GMT
// This was modified to ommit the `:` so we actually have implemented the Z
// Timezone formatter in dart.
//
// See: https://github.com/dart-lang/intl/issues/19 for more details.
# Tips on how to create elaborated CVs
## General
- What were their biggest achievements in the project?
- What was the most interesting features they worked on?
- Did they work alone? In a team?
- How many people worked with them?
- What other areas were involved in that project?
- Did they have to improve a process inside the company?
@hectorddmx
hectorddmx / migrate_to_github_huge_files.sh
Last active March 16, 2022 05:21
Migrate self hosted repo with files bigger than 100 MB to github via git lfs
#!/bin/zsh
# Configure
CURRENT_ORG=SAMPLE_ORG
CURRENT_REPO=${PWD##*/}
# Track, fetch and pull all branches from previous host
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@hectorddmx
hectorddmx / iOS, Swift, Objective-C resources.md
Last active February 9, 2023 02:05
iOS, Swift, Objective-C resources

iOS, Swift, Objective-C resources

#ios #swift #objective-c #objc #obj-c #articles #tutorials #resources #tools #blogs #apps #services #books #courses

For a beginner that’s starting from scratch, I currently recommend HackingWithSwift since it’s free and it has a structured learning path. I’ve seen some juniors start successfuly with SwiftUI first which is easier for them and then go deep with UIKit.

@hectorddmx
hectorddmx / CustomTabBar.swift
Created September 14, 2021 20:00
CustomTabBar.swift
class HomeTabBar: UITabBar {
// Other code here...
override func draw(_ rect: CGRect) {
// self.paintHitBox()
self.addShape()
}
override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
let normalBox = super.point(inside: point, with: event)
@hectorddmx
hectorddmx / compile_openvpn_2_5_2_staticly.sh
Last active June 28, 2021 20:44
macos catalina, compile openvpn 2.5.2 staticly
#!/bin/zsh
# https://gist.github.com/lecksfrawen/fab1a1690ab7b80b4acac617cb5be403
export OTHER_CODE_SIGN_FLAGS=--options=runtime
export OPENVPN_COMPILE_PATH=$HOME/openvpn_source
# Uncomment this if you'd like to clean up the folders before compiling
if [[ -d $OPENVPN_COMPILE_PATH ]] ; then
rm -rf $OPENVPN_COMPILE_PATH