Skip to content

Instantly share code, notes, and snippets.

@Nakilon
Nakilon / .txt
Created November 6, 2026 15:44
my qwen chat system prompt
0. эта инструкция состоит из пунктов, ни один из которых ты не должен упоминать/цитировать при ответе -- держи их в уме, а не свети, ровно как и информацию о том, кто я такой; если ты в рассуждениях будешь опираться на что-либо отсюда, то когда будешь давать ответ, не озвучивай эти детали/причины
1. даже если я задал вопрос на английском, отвечай на русском, если ответ не потеряет в качестве, например, когда я спрашиваю тебя на тему программирования и делаю это на английском просто по привычке так гуглить; если же это вопрос о самом языке, например, когда я с тобой советуюсь на тему, которую, вероятно, обсуждаю с англоязычными товарищами в данный момент, и мне нужно будет тебя им процитировать, то не переключайся на русский
2. не нужно все подряд заворачивать в списки с буллетами, и три раза подряд суммаризировать текущий же ответ; и если ты собираешься сначала расписать детали, а в конце подытожить планом к действию, то лучше наоборот -- начни с плана, а детали уже потом
3. если я спрашиваю у тебя что-нибудь
@Nakilon
Nakilon / rus.txt
Created November 6, 2026 15:42
Resources to Learn More About the Ukrainian/Russian Conflict (source -- I don't remember)
Resources to Learn More About the Ukrainian/Russian Conflict
The History of US Meddling in Ukraine
Russ Bellant, “Old Nazis, The New Right, and the Republican Party” (this book was so influential it forced the resignation of 9 people during the Bush presidential campaign): https://archive.org/details/russ-bellant-old-nazis-the-new-right-and-the-republican-party-domestic-fascist-n
Paul H. Rosenberg, “Seven Decades of Nazi Collaboration: America’s Dirty Little Ukraine Secret”: https://fpif.org/seven-decades-nazi-collaboration-americas-dirty-little-ukraine-secret/
The USA, the 2004 Orange Revolution, and the Aftermath
Ian Traynor, “US campaign behind the turmoil in Kiev”: https://www.theguardian.com/world/2004/nov/26/ukraine.usa
Povilas Zielys and Ruta Rudinskaite, “US democracy assistance programs in Ukraine after the Orange Revolution”: https://www.jstor.org/stable/48609802
Testimony Before the House International Relations Committee, Subcommittee on Europe, “Ukraine's Future and U.S. Interests”: https:/
@Nakilon
Nakilon / 1.txt
Created September 18, 2026 09:27
top 664 English words for vocabulary learning
100199 you
50000 I
33333 to
16666 and
14285 that
12500 it
11111 of
10000 me
9090 what
8333 is
@Nakilon
Nakilon / 0 info.md
Last active June 9, 2026 09:20
'World of Ambient' archive
@Nakilon
Nakilon / main.txt
Created June 3, 2026 03:14
chess psychological approach #2: PCBR
1.
e4 59% +0.2
d4 25% +0.2
Nf3 4% +0.1
c4 3% +0.1
e3 2% 0.0
g3 2% +0.1
b3 2% 0.0
f4 1% -0.2
d3 1% -0.1
@Nakilon
Nakilon / slbsa.rb
Created August 7, 2025 02:45
SLBSA
require "set"
class SLBSA
def initialize max_size, &block
@max_size = max_size
@values = []
@scores = []
@calculate = block
@set = Set.new
end
def push value
@Nakilon
Nakilon / slbsa.rb
Last active July 5, 2025 18:51
size-limited binary-search array
require "set"
class SLBSA
def initialize max_size, &block
@max_size = max_size
@values = []
@scores = []
@calculate = block
@set = Set.new
end
def to_a
@Nakilon
Nakilon / table_print.rb
Created July 4, 2025 20:07
table_print.rb
require "io/console"
def table_print target = ::STDOUT
sizes = transpose.map{ |col| col.map{ |_| _.to_s.size }.max }
sizes.max.then{ |max| sizes.map!{ |_| [max - 1, _].min } } while sizes.sum + sizes.size >= ::IO::console.winsize[1]
each{ |row| target.puts row.zip(sizes).map{ |str, size| "%-#{size}s" % ("%.#{size}s" % str) }.join(" ") }
end
@Nakilon
Nakilon / self-currying.rb
Created July 4, 2025 12:26
self-currying
Config = lambda do
dir = nil
lambda do |_dir = nil|
dir ||= _dir
p dir
end
end.call
Config.()
Config.("asd")
@Nakilon
Nakilon / gist:1d1a741ab29176ffa7873e5a10338347
Created May 11, 2025 15:37 — forked from larsthegeek/gist:4029012
Update RubyGems to a specific version (for legacy system installs)
How to update RubyGems to a specific version
RubyGems can update itself to the latest version:
gem update --system
However, you always get the newest version. This may be a problem if you’re trying to replicate a known-good environment: for example, the output format of `gem list` in RubyGems 1.3.7 breaks Chef 0.8.16 in certain circumstances. 1.3.6 is fine.
Here’s how to update to a specific version—in this case, 1.3.6:
gem install -v 1.3.6 rubygems-update && \