Skip to content

Instantly share code, notes, and snippets.

@pmogollons
pmogollons / extraerCedulaColombiana.js
Last active February 26, 2026 20:01
Función para extraer los datos del codigo de barras PDF417 de una cedula colombiana usando React Native Camera en Javascript
import moment from 'moment';
export function extractColDocumentData(data) {
let dataString = data.barcodes[0]?.data.replaceAll('�', ' ');
if (!dataString.includes('PubDSK_1')) {
throw new Error('Invalid barcode data, only PubSub_1 is supported');
}
@lydongcanh
lydongcanh / react-native-paper-icon-names.json
Created February 27, 2020 16:43
React Native Paper (3.6) Icon List.
[
"access-point",
"access-point-network",
"access-point-network-off",
"account",
"account-alert",
"account-alert-outline",
"account-arrow-left",
"account-arrow-left-outline",
"account-arrow-right",
@topherPedersen
topherPedersen / userinput.go
Created January 13, 2020 21:26
Command Line User Input in Golang
// Command Line User Input in Golang
// REFERENCE: https://stackoverflow.com/questions/20895552/how-to-read-from-standard-input-in-the-console
package main
import (
"fmt"
"bufio"
"os"
)
@wildshark
wildshark / index.html
Created April 3, 2019 00:16
POS Receipt Template Html Css
<div id="invoice-POS">
<center id="top">
<div class="logo"></div>
<div class="info">
<h2>SBISTechs Inc</h2>
</div><!--End Info-->
</center><!--End InvoiceTop-->
@allanchua101
allanchua101 / Node.dockerignore
Created August 10, 2018 15:36
.dockerignore file for Node JS
node_modules
npm-debug.log
@xSystemIOx
xSystemIOx / Character Move C#
Last active January 16, 2026 05:11
2D Character movement Left/Right script for C#
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Move : MonoBehaviour {
private CharacterController player;
public float Speed;
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 5, 2026 08:44
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@jpillora
jpillora / smtp-gmail-send.go
Last active July 19, 2025 18:39
Send email using Go (Golang) via GMail with net/smtp
package main
import (
"log"
"net/smtp"
)
func main() {
send("hello there")
}
@alghanmi
alghanmi / curl_example.cpp
Created May 5, 2014 20:12
cURL C++ Example
#include <iostream>
#include <string>
#include <curl/curl.h>
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp)
{
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}