Skip to content

Instantly share code, notes, and snippets.

@argentinaluiz
argentinaluiz / product.proto
Last active October 22, 2023 00:15
Protofile do desafio da Imersão Full Cycle
syntax = "proto3";
package github.com.codeedu.codepix;
option go_package = "protofiles/pb";
service ProductService {
rpc CreateProduct (CreateProductRequest) returns (CreateProductResponse) {};
rpc FindProducts(FindProductsRequest) returns (FindProductsResponse) {};
}
@0xdevalias
0xdevalias / audio-pitch-correction.md
Last active June 12, 2024 01:25
Some notes on Audio pitch correction (eg. autotune, melodyne, etc)
@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@robinovitch61
robinovitch61 / pannable-zoomable-html5-canvas-react-typescript.tsx
Last active May 22, 2024 14:39
A pannable, zoomable, html5 canvas in React and Typescript
// sandbox here: https://codesandbox.io/s/p3itj?file=/src/Canvas.tsx
import {
useEffect,
useCallback,
useLayoutEffect,
useRef,
useState
} from "react";
import * as React from "react";
@Krazete
Krazete / genBash.js
Created April 25, 2021 22:34
Download an MP4 file from a master.json's list of M4S files.
function genBash(masterURL) {
var xhr = new XMLHttpRequest();
xhr.open("GET", masterURL, true);
xhr.addEventListener("load", function () {
var master = JSON.parse(this.responseText);
var baseURL = new URL(master.base_url, masterURL);
function genBashLines(mp4, type) {
var mp4BaseURL = new URL(mp4.base_url, baseURL);
var segmentURLs = mp4.segments.map(segment => segment.url);
@bus710
bus710 / README.md
Last active March 1, 2024 13:54
Building rust native library to be used by flutter/android

Building rust native library to be used by flutter/android

This short doc shows how to build rust to be used by flutter/android app.
Inspired by hyousef's work but added some details for the workflow.



References

Docs:

@phpenterprise
phpenterprise / olx.js
Last active May 20, 2023 19:19
OLX Data Extractor (Scraping)
(Olx = {
release: '1.0.5 RC',
j: $,
path: window.location.href,
settings: {
debug: true,
url: window.location.href.replace(/\.(\w+)\/.*/, '.$1') + '/vi/{id}?rec=h',
filename: "olx.csv",
split: 100,
speed: 700,
@pgp
pgp / BuildRustAppForAndroid.sh
Created April 11, 2019 08:36
Cross compile RUST application for Android (uses standalone toolchains, NDK >= 19 required)
# arm
export PATH=$PATH:$HOME/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin
export CC=armv7a-linux-androideabi19-clang
export CXX=armv7a-linux-androideabi19-clang++
~/.cargo/bin/cargo build --target armv7-linux-androideabi
# aarch64
export PATH=$PATH:$HOME/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin
export CC=aarch64-linux-android21-clang
export CXX=aarch64-linux-android21-clang++
@mistic100
mistic100 / vimeo-downloader.js
Created September 15, 2018 09:01
Download video from Vimeo (chopped m4s files)
// 1. Open the browser developper console on the network tab
// 2. Start the video
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL
// 4. Run: node vimeo-downloader.js "<URL>"
// 5. Combine the m4v and m4a files with mkvmerge
const fs = require('fs');
const url = require('url');
const https = require('https');
@rosario
rosario / composing-software.md
Created January 17, 2018 16:13 — forked from Geoff-Ford/composing-software.md
Eric Elliott's Composing Software Series