Skip to content

Instantly share code, notes, and snippets.

View Fuwn's full-sized avatar
✒️
亀の甲より年の功

Fuwn Fuwn

✒️
亀の甲より年の功
View GitHub Profile
@Fuwn
Fuwn / GPU Hierachy 2019.md
Created August 17, 2019 12:41
GPU Hierachy 2019.
/ Score GPU Base/ Boost Memory Power
Nvidia Titan RTX 100 TU102 1350/1770 MHz 24GB GDDR6 280W
Nvidia GeForce RTX 2080 Ti 98.4 TU102 1350/1635 MHz 11GB GDDR6 260W
Nvidia GeForce RTX 2080 Super 98.2 TU104 1650/1815 MHz 8GB GDDR6 250W
Nvidia GeForce RTX 2080 96.1 TU104 1515/1800 MHz 8GB GDDR6 225W
Nvidia Titan X 96.0 GP102 1405/1480 MHz 12GB GDDR5X 250W
Nvidia GeForce GTX 1080 Ti 96.0 GP102 1480/1582 MHz 11GB GDDR5X 250W
AMD Radeon RX 5700 XT 95.8 Navi 10 1605/1905 MHz 8GB GDDR6 225W
Nvidia GeForce RTX 2070 Super 94.1 TU104 1605/1770 MHz 8GB GDDR6 215W
@Fuwn
Fuwn / CPU Hierarchy 2019.md
Last active August 17, 2019 13:27
CPU Hierarchy 2019.
/ Gaming Score Application Score CPU Cores/ Threads Base/ Boost TDP
AMD Ryzen 9 3900X ~ ~ Zen 2 12 / 24 3.8 / 4.6 GHz 105W
Intel Core i9-9900K ~ ~ Coffee Lake-R 8 / 16 3.6 / 5.0 GHz 95W
Intel Core i9-9900KF ~ ~ Coffee Lake-R 8 / 16 3.6 / 5.0 GHz 95W
AMD Ryzen 7 3800X ~ ~ Zen 2 8 / 16 3.9 / 4.5 GHz 105W
AMD Ryzen 7 3700X ~ ~ Zen 2 8 / 16 3.6 / 4.4 GHz 65W
Intel Core i7-9700K ~ ~ Coffee Lake-R 8 / 8 3.6 / 4.9 GHz 95W
Intel Core i7-8700K 100 70.4 Coffee Lake 6 / 12 3.7 / 4.7 GHz 95W
Intel Core i7-8700 99.98 61.1 Coffee Lake 6 / 12 3.2 / 4.6 GHz 65W
@Fuwn
Fuwn / WPLSIL.md
Last active September 10, 2019 02:05
What programming language should I learn?

In my opinion, it depends on your goal.

Lets broaden the field.

  • Learning from scratch :
    • Scenario 1
    • Q-: If your dad asked you what you want for your birthday, and you chose a car, which transmission would you choose?
      • A1: Manual → Go for C.
      • A2: Auto → Go for Java.
  • A3: My dad would never get me a car. (Practical thinking for 98.99% reader) → Python is for you.
@Fuwn
Fuwn / ConsoleColour.h
Last active January 23, 2020 07:52
Windows specific console out text colour changer.
// Usage:
// std::cout << COLOUR_HERE << "Text";
// Example:
// std::cout << red << "Text";
//
// You can also make new colours by combing the base RGB colours.
// FOREGROUND_RED, FOREGROUND_GREEN, FOREGROUND_BLUE are the base colours.
// FOREGROUND_INTENSITY gives vibrance. The colour name can be changed by
// changing; inline std::ostream& THIS_VALUE_HERE(std::ostream& s)
@Fuwn
Fuwn / Request-AES-Key.js
Last active April 2, 2020 03:05
Request AES Key.
// You must have jQuery installed to use this script.
//
// --- How to use: ---
// 1. Install jQuery if not already installed.
// 2. Move THIS script into a safe directory.
// 3. Call THIS script in head via <script src="/path/to/Request-AES-Key.js"></script>
// 4. Copy THIS span tag and include somewhere on page; <span id="serverTime"></span>
// 5. Done.
var settings = { // Settings
const path = require('path');
const config = require('../config.js');
const fs = require('fs');
const sharp = require('sharp');
const ffmpeg = require('fluent-ffmpeg');
const utilsController = {};
utilsController.videoExtensions = ['.webm', '.mp4', '.wmv', '.avi', '.mov'];
utilsController.generateThumbs = function(file, basedomain) {
document.getElementsByName("image_width")[0].value = 1000;document.getElementsByName("image_height")[0].value = 1;
@Fuwn
Fuwn / DD_RFC.md
Created May 27, 2021 06:14
Double dot operator for initializing vector with another vector's elements

I recently came across a situation where I had to push multiple vectors of thread handles to a central vector.

The first element that I was adding to the central thread comes as follows;

// This works.

// `example_crate::make()` returns a `std::thread::JoinHandle<()>`;
let mut threads = vec![example_crate::make()];