Skip to content

Instantly share code, notes, and snippets.

View RojjaCebolla's full-sized avatar
💭
learning to code C and C++, tips always welcome

RojjaCebolla

💭
learning to code C and C++, tips always welcome
View GitHub Profile
@RojjaCebolla
RojjaCebolla / magicalCPP.cpp
Last active February 4, 2021 03:56
Magical c++ snippets
//discards all input in the standard input stream up to and including the first newline.
#include <limits>
cin.ignore(numeric_limits<streamsize>::max(), '\n');
//This is a string of special characters that clears the terminal on both linux and windows.
cout << "\033[2J\033[1;1H";
//This rolls a random number, but I'm not happy with it
//because it seems to segfault if it's passed a negative number
//for now, force anything less than 1 to become 1.
@RojjaCebolla
RojjaCebolla / 50seedcatalogue.makefile
Created March 18, 2020 18:31
interesting items from 50 random seeds (latest aka 0.24) (Crawl version 0.24.0 last commit a7d21def0a8b0b39c6825b643a3b51f371b73583)
~
-seed 1756522551 (items, features):
D2 Feats: radiant _Vehumet
D3 Items: "faith,
=magic,
Feats: Zin's Purification Station, blossoming _Fedhas,
glowing silver _Zin, sacrificial _Ru,
transporter x2
D4 Items: +0 long sword of electrocution, +1 pair of gloves,
+4 ring mail of Gozag's Displeasure {rF+ Int+4 Slay+2},
@RojjaCebolla
RojjaCebolla / 50seedcatalogue.makefile
Last active March 18, 2020 00:07
the interesting items from 50 random seeds (trunk aka 0.25) (Crawl version 0.25-a0-583-g696c2ac64d)
~
-seed 58420833 (items, features):
D:3 Items: amulet of guardian spirit,
Features: a glowing silver Zin, a shattered Ashenzari
D:4 Features: a sand-covered staircase, a white marble Elyvilon
D:5 Items: wand enslavement (9)
Features: a hide-covered Uskayaw
~
-seed 216161769 (items, features):
D:2 Items: Book Minor Magic, ring protection from fire