Skip to content

Instantly share code, notes, and snippets.

View gogl92's full-sized avatar
🎣
Florida

Luis Gonzalez gogl92

🎣
Florida
View GitHub Profile
@gogl92
gogl92 / App.tsx
Created May 3, 2023 04:33
Typescript React draggable video widget
import VideoComponent from './VideoComponent';
function App() {
return (
<div className="App">
<VideoComponent isVisible={false} videoUrl="https://path-to-your-video/video.mp4" />
</div>
);
}
@akbertram
akbertram / README.md
Last active February 22, 2024 10:39
Fingerprint Scanning with WebUSB

These are notes regarding an experimental attempt to operate a SecuGen HU20 fingerprint scanner with WebUSB. I wanted to learn a bit about the WebUSB protocol and to assess how feasible such a project would be.

The ideal is that our web application would be able to interact directly with the Fingerprint Scanner on a Windows, Mac or Android Tablet or phone without having to muck around with drivers or other installed software.

Problems

There are unfortunately two principle problems that undermine this ideal.

The first and most significant from my point of view is that interacting with the Fingerprint Scanner requires significant mucking about on Windows

#!/bin/bash
#
# Inspects branch name and checks if it contains a Jira ticket number (i.e. ABC-123).
# If yes, commit message will be automatically prepended with [ABC-123].
#
# Useful for looking through git history and relating a commit or group of commits
# back to a user story.
#
@LuanComputacao
LuanComputacao / maven.Dockerfile
Last active October 30, 2023 10:47
Dockerfile to install maven
#
# Oracle Java 7 Dockerfile
#
# https://github.com/dockerfile/java
# https://github.com/dockerfile/java/tree/master/oracle-java7
#
# Pull base image.
FROM alpine as build
@RobDWaller
RobDWaller / docker-compose.yml
Created May 24, 2019 15:02
Nginx, PHP FPM, MongoDB Docker Compose
version: "3"
services:
server:
container_name: settings_server
image: nginx:1.15
ports:
- "8080:80"
volumes:
@smeschke
smeschke / align_scan.py
Last active May 17, 2024 01:45
Aligns a scanned document to find optimal rotation
import cv2
import numpy as np
src = 255 - cv2.imread('/home/stephen/Desktop/I7Ykpbs.jpg',0)
scores = []
h,w = src.shape
small_dimention = min(h,w)
src = src[:small_dimention, :small_dimention]
@aungwinthant
aungwinthant / FCM.php
Last active July 20, 2023 11:53
Firebase Cloud Messaging with Guzzle HTTP Client (Only For Topics)
<?php
use GuzzleHttp\Client;
class FCM{
protected $endpoint;
protected $topic;
protected $data;
protected $notification;
@yufengg
yufengg / AutoML_data_preparation_AIA023.ipynb
Last active April 15, 2024 13:30
Notebook for preparing a CSV for Google Cloud AutoML Vision
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paulund
paulund / laravel-recaptcha-validation.php
Created April 3, 2018 19:14
A Laravel validation rule to verify recaptcha.
<?php
namespace App\Rules;
use GuzzleHttp\Client;
use Illuminate\Contracts\Validation\Rule;
class GoogleRecaptcha implements Rule
{
/**
// This code is assumed to be part of one of the extension's content scripts
function addIframe() {
const iframe = document.createElement('iframe');
iframe.addEventListener('load', () => {
iframe.contentWindow.postMessage({
eventName: 'init',
iframeSrc: 'https://xkcd.com/' // whatever url you want. Probably will be a URL to your own domain in practice
}, '*');
}, false);