Skip to content

Instantly share code, notes, and snippets.

View mishazawa's full-sized avatar
🎩
because white is boring

mishazawa

🎩
because white is boring
  • 0x0
  • 09:35 (UTC +09:00)
View GitHub Profile
@steven2358
steven2358 / ffmpeg.md
Last active July 2, 2025 17:10
FFmpeg cheat sheet
@mrbar42
mrbar42 / README.md
Last active April 9, 2025 18:03
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
anonymous
anonymous / japanese.md
Created March 18, 2017 10:44
japanese.md
@vsetka
vsetka / Cleanup.h
Last active May 27, 2024 15:00
Self deleting executable - Windows
#ifndef CLEANUP_H
#define CLEANUP_H
#include <windows.h>
#include <tchar.h>
#include <string>
#include <iostream>
#include <conio.h>
#endif
var R = require('ramda');
void 0; //to not bloat the output
var random = require('seed-random')(1337);
var data = [
{input: [0, 0], output: 0},
{input: [1, 0], output: 1},
{input: [0, 1], output: 1},
{input: [1, 1], output: 0},
];
var activation_sigmoid = x => 1 / (1 + Math.exp(-x));
@wavezhang
wavezhang / java_download.sh
Last active June 30, 2025 13:29
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
vec2 rotate(vec2 v, float a) {
float s = sin(a);
float c = cos(a);
mat2 m = mat2(c, s, -s, c);
return m * v;
}
@mattes
mattes / og.txt
Last active May 7, 2022 01:53
Open Graph debugger
http://ogp.me/
https://moz.com/blog/meta-data-templates-123
https://search.google.com/structured-data/testing-tool
https://developers.facebook.com/tools/debug/og/object - https://developers.facebook.com/docs/reference/opengraph
https://cards-dev.twitter.com/validator - https://dev.twitter.com/cards/types
https://developers.pinterest.com/tools/url-debugger/ - https://developers.pinterest.com/docs/rich-pins/overview/
https://developer.linkedin.com/docs/share-on-linkedin