Skip to content

Instantly share code, notes, and snippets.


Victor Maslov Nakilon

View GitHub Profile
lbvf50mobile /
Last active Aug 8, 2021
Материалы по Ruby.

Материалы по Ruby.

В этом документе коротко собраны ключевые материалы по языку Ruby позволяющие быстро научиться использовать основные преимущества этого языка.

lbvf50mobile / make_four.rb
Last active Jul 29, 2021
Question by @Nakilon from 29.07.2021 Thursday.
View make_four.rb
# Question by @Nakilon from 29.07.2021 Thursday.
puts "Make an array four times bigger!"
def make_four(array)!{|x| x + x}
(0...array.size).each do |i|

hi, and goodbye

The past few weeks has not been fun on IRC, the drama based on false information and assumptions has been insane. I've almost entirely been silent on the drama because I know the fallout that would happen if I spoke up.

A quick TLDR - I'm quitting all IRC development. KiwiIRC project lead, IRCv3 technical board, supporting the multitude of IRC networks, the lot.

Many people seem to think that I am supporting one side in everything that is going on, so just to be clear: I am not supporting any side of the current freenode drama - there is so much false information going around from everywhere that it is impossible to support anybody.

Woo freenode drama

Nakilon / HOW TO (example).md
Last active Mar 9, 2021
streaming a still image with ability to replace it on the fly
View HOW TO (example).md

Streaming local Moscow time:

  • mkdir stream && cd stream
  • test run:
    docker run --rm -it -v $(pwd):/mounted -w /mounted --log-driver local -e TZ=Europe/Moscow nakilonishe/alpine-vips-text sh -c "apk add tzdata && while sleep 0.5; do vips text image.v \"\$(date '+%Y-%m-%d%n %H:%M:%S')\" --dpi 200 --font Monospace && vips invert image.v atomic.png && mv atomic.png image.png; done"
    export key=...
    docker run --rm -it -v $(pwd):/mounted -w /mounted --log-driver local -e key -e loglevel=info -e s=640x360 -e preset=medium nakilonishe/ffmpeg-stream-image
tigertv /
Created Feb 16, 2020 — forked from roachhd/
Games on GitHub

Games on GitHub

Below is a list of open source games and game-related projects that can be found on GitHub - old school text adventures, educational games, 8-bit platform games, browser-based games, indie games, GameJam projects, add-ons/maps/hacks/plugins for commercial games, libraries, frameworks, engines, you name it.


If you'd like to add a repository to the list, please create an Issue, or fork this repository and submit a pull request.

Help: MarkDown Help, Markdown Cheatsheet

obelisk68 / tetris_for_Ruby2D.rb
Last active Aug 12, 2020
Ruby2D を使ったテトリス
View tetris_for_Ruby2D.rb
require "ruby2d"
include Ruby2D::DSL
Wait = 18
class Tetromino
def initialize
@pat =
pats = [["1111"], ["11", "11"], ["011", "110"], ["110", "011"],
["100", "111"], ["001", "111"], ["010", "111"]]
Nakilon /
Last active Jul 27, 2021
The most important (in my opinion) changes in Ruby versions

N -- new feature -- I may consider using it
B -- breaking change -- I should review my code

N def-expr now returns the symbol of its name instead of nil.
N Array#to_h converts an array of key-value pairs into a Hash.
N Enumerable#to_h converts a list of key-value pairs into a Hash.
N Binding#local_variable_get(symbol)
N Exception#cause provides the previous exception which has been caught at where raising the new exception.
spalladino / Makefile
Created Nov 23, 2016
Proof of concept of Ruby extension written in Crystal
View Makefile
crystal --link-flags "-dynamic -bundle -Wl,-undefined,dynamic_lookup" -o testruby.bundle
irb: testruby.bundle
irb -rtestruby -I.
rm -rf .crystal testruby.bundle