Skip to content

Instantly share code, notes, and snippets.

View hoblin's full-sized avatar

Yevhenii Hurin hoblin

  • Kotka, Finland
  • 18:16 (UTC +03:00)
View GitHub Profile
class Permission < ApplicationRecord
has_many :roles through: :roles_permissions
end
station_mode;
itemID;blueprintID
MyObjectBuilder_Ore/Ice;noBP
MyObjectBuilder_Ingot/Silicon;noBP
MyObjectBuilder_Ingot/Nickel;noBP
MyObjectBuilder_Ingot/Uranium;noBP
MyObjectBuilder_Ingot/Platinum;noBP
MyObjectBuilder_Ingot/Gold;noBP
MyObjectBuilder_Ingot/Iron;noBP
MyObjectBuilder_Ingot/Silver;noBP
@hoblin
hoblin / Convert .mov or .MP4 to .gif.md
Created May 20, 2022 15:52 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@hoblin
hoblin / benchmark.rb
Created February 28, 2025 01:43
Benchmark comparing 7 different methods for efficiently estimating CSV row counts without reading entire files, evaluating memory usage, speed, and accuracy to identify the optimal implementation.
#!/usr/bin/env ruby
require "benchmark"
require "benchmark/memory"
require "csv"
require "date"
# Configuration
SAMPLE_LINES = 1000
BLOCK_SIZE = 4 * 1024 * 1024
BUFFER_SIZE = 4096