- Download & Install Sublime Text 3.2.2 Build 3211
- Visit https://hexed.it/
- NO trabajo para BCP en este momento ni previo a esta fecha.
- NO me hago responsable por lo que otros hagan con este script.
- NO brindo ningún tipo de soporte, si quieres usarlo lee tutoriales.
- SOLO para uso personal, NO hacerlo comercial. EVITAR piratear.
- SI lo RE-POSTEAS, hazlo agregando un enlace a este ORIGINAL.
- ESPERO que BCP mejore su APP en vez de chequeos TONTOS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function s2b(data: string) { | |
return Uint8Array.from(data, c => c.charCodeAt(0)).buffer | |
} | |
function b2s(data: ArrayBufferLike) { | |
return String.fromCharCode(...new Uint8Array(data)) | |
} | |
function hex(data: ArrayBufferLike) { | |
return [...new Uint8Array(data)].map(x => x.toString(16).padStart(2, '0')).join('') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { FastifyInstance } from 'fastify' | |
import fp from 'fastify-plugin' | |
import type { ZodAny, ZodError, ZodTypeAny } from 'zod' | |
import { z } from 'zod' | |
import { fromZodError } from 'zod-validation-error' | |
declare module 'fastify' { | |
// TODO: Copy ZodTypeProvider here (output) | |
interface FastifyTypeProviderDefault { | |
output: this['input'] extends ZodTypeAny ? z.infer<this['input']> : unknown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { extname } from 'node:path' | |
import sharp, { FormatEnum } from 'sharp' | |
import type { Plugin } from 'vite' | |
function sharpPlugin(): Plugin { | |
return { | |
name: 'vite:sharp', | |
enforce: 'post', | |
apply: 'build', | |
async generateBundle(_, bundle) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
args=( | |
minimal=yes # build only gpsd | |
gpsdclients=no # without clients | |
gpsd_group=uucp # arch linux group | |
socket_export=yes # fixes gps_unpack | |
control_socket=yes # for /run/gpsd.sock | |
) |
↓
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
An example that converts os.Args to argc/argv for C. | |
Can be used with any []string with the same procedure. | |
*/ | |
package main | |
/* | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function(WSH) { | |
function trim(msg) { | |
return msg.replace(/\s+/g, '') | |
} | |
function log(tag, msg) { | |
WSH.StdOut.WriteLine(`[${tag}] ${msg}`) | |
} | |
function fail(msg) { | |
log('E', msg) | |
WSH.Quit(1) |
NewerOlder