Skip to content

Instantly share code, notes, and snippets.

View andcl's full-sized avatar

Andrés andcl

  • Spain
View GitHub Profile
@steven2358
steven2358 / ffmpeg.md
Last active November 11, 2024 04:45
FFmpeg cheat sheet
@thebrubaker
thebrubaker / .env
Last active October 1, 2023 20:47
Laravel Passport: SPA Frontend Authentication
# Added to the bottom of my file
PROXY_OAUTH_CLIENT_ID=2
PROXY_OAUTH_CLIENT_SECRET=SECRET-GENERATED-KEY-HERE
PROXY_OAUTH_GRANT_TYPE=password
@calebsmithdev
calebsmithdev / app.blade.php
Created September 21, 2017 02:30
Vue Paper Dashboard Pro and Laravel
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="apple-touch-icon" sizes="76x76" href="static/img/apple-icon.png">
<link rel="icon" type="image/png" sizes="96x96" href="static/img/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Vue Paper Dashboard</title>
<!-- Bootstrap core CSS -->
@andcl
andcl / MAch3AutoToolZero.vb
Last active July 30, 2017 18:48
Mach3 Auto Tool Zero mejorado (enhanced)
CurrentFeed = GetOemDRO(818) ' Obtención de la velocidad de avance (feedrate) para después
DoSpinStop() ' Paramos la fresa (spindle) por seguridad
ZMax = 20.00 ' Longitud máxima de movimiento antes de abortar la operación de puesta a cero del eje Z
ZSonda = 19.75 ' Altura / grosor de la peana de la sonda
ZSeparacion = 2 ' Altura de separación entre la sonda y la fresa una vez realizada la operación
ZFinal = ZSonda + ZSeparacion
If GetOemLed (825) = 0 Then ' Si el eje Z no está ya sondeado (entrada de sonda ya activa)...
@javilobo8
javilobo8 / download-file.js
Last active October 27, 2024 09:15
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
@simonhamp
simonhamp / AppServiceProvider.php
Last active November 1, 2024 18:28
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()
@sheharyarn
sheharyarn / request.js
Last active August 24, 2023 14:55
Axios Request Wrapper for React (https://to.shyr.io/axios-requests)
/**
* Axios Request Wrapper
* ---------------------
*
* @author Sheharyar Naseer (@sheharyarn)
* @license MIT
*
*/
import axios from 'axios'