Skip to content

Instantly share code, notes, and snippets.

View smorcuend's full-sized avatar
🎯
Focusing

Sergio Morcuende smorcuend

🎯
Focusing
View GitHub Profile
@smorcuend
smorcuend / gist:9bd8f41ec85273f81a5f2314f27331a5
Created February 21, 2023 17:20 — forked from binura-g/single-line-cert.sh
Convert Certificates ( .pem, / .crt / etc ) into single-line strings for JSON payloads
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' cert-name.pem
@smorcuend
smorcuend / app.vue
Last active November 14, 2022 13:59
Nuxt3 Composables advanced usage - Immutability
<template>
<div>
<input type="text" v-model="newTodo" />
<button
@click="
addToDo(newTodo);
newTodo = '';
"
>
Add ToDo
@smorcuend
smorcuend / WORKFLOW_GIT.md
Last active July 22, 2022 12:17 — forked from aaossa/README.md
Workflow GIT

Workflow con git

Para este proyecto seguiremos la metodología de tener una branch principal master (equivalente a release en otros proyectos), una branch dev (o development) para comprobar que todo funcione antes de enviar los cambios a master y múltiples "feature branches" para que cada colaborador pueda enacrgarse de una tarea definida, trabajarla y probarla a gusto antes de reunir los cambios en dev. Para más detalle y ejemplos pueden usar de esta lectura la sección Feature Branch Workflow.

From: https://www.atlassian.com/pt/git/workflows

Pasos para empezar a trabajar en una feature

@smorcuend
smorcuend / bugreport.md
Created July 20, 2022 10:41
bugreport.md

Summary

Steps to reproduce

@smorcuend
smorcuend / jsconfig.json
Created November 5, 2021 11:43
jsconfig.json example for nuxt
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"],
"~~/*": ["./*"],
"@@/*": ["./*"]
}
},
@smorcuend
smorcuend / rn-setup.sh
Last active September 23, 2021 09:59
React Native setup on Debian (10+) with Expo
# Requirements
# - Node.js LTS release
# - Git
# Install ADB(Android Debug Tool) and Fastboot
sudo apt update && sudo apt install android-tools-adb android-tools-fastboot
adb --help
# Enable USB Debugging on Android
# Connect Your Phone to Debian
@smorcuend
smorcuend / Github_APIv4 organization data
Created October 8, 2019 09:48
Github_APIv4: These queries will fetch the organization repository information that is sorted by the last push/commit made using the orderBy field
query($cursor: String, $org: String = "") {
organization(login: $org) {
repositories(
first: 50
after: $cursor
orderBy: { field: PUSHED_AT, direction: DESC }
) {
totalCount
pageInfo {
endCursor
@smorcuend
smorcuend / search.html
Created September 9, 2019 15:14 — forked from ranakrunal9/search.html
Search Pipe Angular 2
<!-- Pipe Usage in HTML -->
<input placeholder="keyword..." [(ngModel)]="search"/>
<div *ngFor="let item of items | searchPipe:'name':search ">
{{item.name}}
</div>
@smorcuend
smorcuend / package.json.piece
Last active September 3, 2019 16:28
Angular scripts for bumping code
"release:changelog": "npm run conventional-changelog -- -p angular-bitbucket -i CHANGELOG.md -s -r 0",
"report-coverage": "codecov",
"preversion": "git checkout master && git pull origin master --tags",
"version": "npm run release:changelog && git add CHANGELOG.md package.json",
"postversion": "rm -rf dist/",
"bump": "npm run bump:patch",
"bump:patch": "npm version patch -m 'Bump version: %s';",
"bump:minor": "npm version minor -m 'Bump version: %s';",
"bump:major": "npm version major -m 'Bump version: %s';"
#include <Wire.h>
#include <WiFi.h>
#include <SparkFunBME280.h>
#include <SparkFunCCS811.h>
#include "Adafruit_Si7021.h"
#include <MQTT.h>
#define CCS811_ADDR 0x5A
#define BMP280_ADDR 0x76
#define SI2071_ADDR 0x40