Skip to content

Instantly share code, notes, and snippets.

View techinpark's full-sized avatar
🚀
Make useful things

Fernando techinpark

🚀
Make useful things
View GitHub Profile
@techinpark
techinpark / activity
Last active November 3, 2022 09:40
activity
🚶‍♂️ 144km ███████████████████▍
‍🏃‍♂️ 3km ▍░░░░░░░░░░░░░░░░░░░
🏋️‍♀️ 0km ░░░░░░░░░░░░░░░░░░░░
147km total
#!/bin/sh
FILE=$1
MESSAGE=$(cat $FILE)
BRANCH_TICKET=$(git rev-parse --abbrev-ref HEAD | grep -Eo '^(\w+/)?(\w+[-_])?[0-9]+' | grep -Eo '(\w+[-])?[0-9]+' | tr "[:lower:]" "[:upper:]")
if [[ $BRANCH_TICKET == "" || "$MESSAGE" == "$BRANCH_TICKET"* ]];then
exit 0;
fi
@techinpark
techinpark / Workouts
Last active July 6, 2025 07:46
Fernando Workouts
‍🏃‍♂️ 236km ████████████████▏░░░
🚶‍♂️ 54km ███▌░░░░░░░░░░░░░░░░
289km total
function save(filename, data) {
const blob = new Blob([data], {type: 'text/csv'});
if(window.navigator.msSaveOrOpenBlob) {
window.navigator.msSaveBlob(blob, filename);
}
else{
const elem = window.document.createElement('a');
elem.href = window.URL.createObjectURL(blob);
elem.download = filename;
document.body.appendChild(elem);
{
"error": {
"code": 0,
"httpCode": 200,
"message": "",
"status": 0,
"details": []
},
"body": {
"fitness_level": 3,
{
"error": {
"code": 0,
"httpCode": 200,
"message": "",
"status": 0,
"details": []
},
"body": {
"id": "60d1a93128e087356746ce74",
updated
#!/bin/bash
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop release)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
JIRA_ID=`echo $BRANCH_NAME | egrep -o '.*-[0-9]+'`
#!/usr/bin/env ruby
# frozen_string_literal: true
# <bitbar.title>Github Contribution</bitbar.title>
# <bitbar.version>v0.0.1</bitbar.version>
# <bitbar.author>mizoR</bitbar.author>
# <bitbar.author.github>mizoR</bitbar.author.github>
# <bitbar.image>https://user-images.githubusercontent.com/1257116/34550684-37da7286-f156-11e7-9299-5873b6bb2fd7.png</bitbar.image>
# <bitbar.dependencies>ruby</bitbar.dependencies>
#
@techinpark
techinpark / make_binary_cache.py
Last active June 14, 2020 17:02
make cocoapods binary cache to update github repo
import os
import shutil
import zipfile
rome_path = f"{os.getcwd()}/Rome"
os.chdir(rome_path)
listdir = os.listdir(os.getcwd())
framework_list = list(filter(lambda x: x.endswith('.framework'), listdir))