Skip to content

Instantly share code, notes, and snippets.

@VamuveTV
VamuveTV / FARFAS
Created January 31, 2025 15:43 — forked from farfasgomes/FARFAS
FAMES
<channels>
<channel>
<name>[COLOR white]<<[/COLOR][COLOR yellow] FILMES [/COLOR][COLOR white] VÁRIOS >>[/COLOR]</name>
<thumbnail>https://goo.gl/4CgUfg</thumbnail>
<fanart>https://goo.gl/pgzAYJ</fanart>
<link>http://ignoreme</link>
<externallink>http://pastebin.com</externallink>
</channel>
</channels>
@VamuveTV
VamuveTV / mini_dump_example.cpp
Created August 11, 2023 02:41 — forked from allenh1/mini_dump_example.cpp
An example of how to create a Mini Dump on Windows
#include <functional>
#include <iostream>
#include <windows.h>
#include <dbghelp.h>
template<typename Callback>
struct ScopeExit
{
explicit ScopeExit(Callback p_func)
#EXTM3U
#EXTINF:-1 tvg-logo="https://tinyurl.com/y5k2k2pf" type="video" group-title="SERIES GDRIVE" pltv-subgroup="VIAGEM AO FUNDO DO MAR", VIAGEM AO FUNDO DO MAR T01 E00
https://lh3.googleusercontent.com/6JJfktMLH-uQGhrVlbcgbqNN1EXvtlFSvx3RL0dxAraMddcetBN0l6PwHnaDLT007q8s700DgAPzTRmyV23i0s0PodsJvU5Rq--dYWLUUYL4UbHyBN3BoIcAJ-lotdun73u0I0y5OPI=m18
#EXTINF:-1 tvg-logo="https://tinyurl.com/y5k2k2pf" type="video" group-title="SERIES GDRIVE" pltv-subgroup="VIAGEM AO FUNDO DO MAR",VAFDM T01E01
https://lh3.googleusercontent.com/duNuZmI4GHNppbk7aopPNzeGeQ9x-UMByykALjKPM0jRu7H5zdWwPAxMhNJ1RbjzjsgKWeqTiqivKxMMEeOTGDpSTbWukcvoOdEZaGv-hP85GAw6UXCdxhNEv0TEBLgUefXcdR7Hx8k=m18
#EXTINF:-1 tvg-logo="https://tinyurl.com/y5k2k2pf" type="video" group-title="SERIES GDRIVE" pltv-subgroup="VIAGEM AO FUNDO DO MAR",VAFDM T01E02
https://lh3.googleusercontent.com/MsgpO8KbcqyRh4mHPN3VM2BP4q8tJ-efRU0nGbhHdDrRyxFynTkecWRYJtj6BNM3c9Z_qcGzrl6lVUfWCq59s1uEcugHbUkv-00bQzIG4yKDhu1aSR87FFDR5M2boLjbqcocf3EOEG0=m18
#EXTINF:-1 tvg-logo="https://t
@VamuveTV
VamuveTV / hitTest.js
Created February 4, 2021 17:49 — forked from gordonnl/hitTest.js
Hit test in threejs for skinnedMesh using RTT
/*
*
* Render current frame and check pixel
* transparency beneath mouse position.
* Threejs required.
*
*/
var gl = renderer.context;
var rtTexture = new THREE.WebGLRenderTarget(WIDTH, HEIGHT, {minFilter: THREE.LinearFilter, magFilter: THREE.NearestFilter, format: THREE.RGBAFormat});
@VamuveTV
VamuveTV / Pablo the Flamingo physics.markdown
Created February 4, 2021 17:46
Pablo the Flamingo physics
@VamuveTV
VamuveTV / halftofloat.cpp
Created October 5, 2020 08:23 — forked from kayru/halftofloat.cpp
SSE2 Half to Float
// Yuriy O'Donnell <[email protected]>
// Released under MIT License (do whatever you want with it)
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#include <windows.h>
#include <xnamath.h>
#include <malloc.h>
@VamuveTV
VamuveTV / image.c
Created September 23, 2020 05:22 — forked from chaidy/image.c
GdipCreateBitmapFromScan0
GpStatus WINGDIPAPI GdipCreateBitmapFromScan0(INT width, INT height, INT stride,
PixelFormat format, BYTE* scan0, GpBitmap** bitmap)
{
HBITMAP hbitmap=NULL;
INT row_size, dib_stride;
BYTE *bits=NULL, *own_bits=NULL;
REAL xres, yres;
GpStatus stat;
TRACE("%d %d %d 0x%x %p %p\n", width, height, stride, format, scan0, bitmap);
/*
Sort 4 floats in SSE vector using sorting network and return indices of moved values
*/
inline __m128i v4_sort(__m128& v)
{
auto i = _mm_castsi128_ps(_mm_set_epi32(3, 2, 1, 0));
const auto mask = _mm_castsi128_ps(_mm_set1_epi32(0xFFFFFFFC));
// Place indices in lower 2 bits of mantissa
v = _mm_or_ps(_mm_and_ps(v, mask), i);
@VamuveTV
VamuveTV / poisson_reconstruct.py
Created July 17, 2020 03:47 — forked from jackdoerner/poisson_reconstruct.py
Fast Poisson Reconstruction in Python
"""
poisson_reconstruct.py
Fast Poisson Reconstruction in Python
Copyright (c) 2014 Jack Doerner
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@VamuveTV
VamuveTV / ffmpeg.md
Created May 17, 2020 05:05 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz: