Skip to content

Instantly share code, notes, and snippets.

View benjipott's full-sized avatar
🏔️
Into The Wild

Benjamin Pott benjipott

🏔️
Into The Wild
  • Majelan, Afrostream, M6
  • Lyon, france
  • 07:30 (UTC -12:00)
  • X @benjipott
View GitHub Profile
@benjipott
benjipott / demo_tools.py
Created September 3, 2025 11:01 — forked from Erol444/demo_tools.py
NDVI Drone with SAM2 segmentation
import json
import colorsys
import cv2
import numpy as np
def sam_results(file):
with open(file, 'r') as file:
lines = file.readlines()
data = []
for line in lines:
@benjipott
benjipott / AndroidManifest.xml
Created May 29, 2019 08:55 — forked from erkattak/AndroidManifest.xml
Android Application Setup for use with Charles Proxy
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">
@benjipott
benjipott / ffmpeg-cheatsheet.md
Created June 20, 2018 15:13 — forked from nickkraakman/ffmpeg-cheatsheet.md
FFmpeg cheat sheet for 360 video

FFmpeg Cheat Sheet for 360º video

Brought to you by Headjack

 
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.

 
Let's start with some basics:

  • ffmpeg calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
@benjipott
benjipott / video.jsx
Created May 19, 2016 14:47 — forked from mikechau/video.jsx
videojs react component
var React = require('react');
var cx = require('classnames');
var vjs = require('video.js');
var _forEach = require('lodash/collection/forEach');
var _debounce = require('lodash/function/debounce');
var _defaults = require('lodash/object/defaults');
var DEFAULT_HEIGHT = 800;
var DEFAULT_WIDTH = 600;
var DEFAULT_ASPECT_RATIO = (9 / 16);
@benjipott
benjipott / __request
Last active August 29, 2015 14:09 — forked from natos/__request
var request = require('request')
/**
* Handle multiple requests at once
* @param urls [array]
* @param callback [function]
* @requires request module for node ( https://github.com/mikeal/request )
*/
var __request = function (urls, callback) {