Skip to content

Instantly share code, notes, and snippets.

View adabo's full-sized avatar
🏠
Working from home

Abel adabo

🏠
Working from home
View GitHub Profile
@adabo
adabo / insideparent.txt
Created June 29, 2017 18:40
Text inside paren in first column only
(08/27/91)
(1 player)
(11th Rallye version)
(12/1/1986)
(12/11/1985)
(12/16/1985)
(12/24/1981,prototype?)
(128k Ver.)
(1984)
(2 players)
@adabo
adabo / main.cpp
Created February 10, 2019 18:38
How to use std::find() on vector of objects
#include <iostream>
#include <algorithm>
#include <vector>
#include <iterator>
enum ItemType
{
TORCH,
KEY,
GEM,
@adabo
adabo / main.cpp
Created February 10, 2019 20:19
Why is the result true when false is expected?
#include <iostream>
#include <vector>
enum ItemType
{
TORCH,
KEY,
GEM,
PEBBLE,
GOLD
@adabo
adabo / Boot-Info_20190222_0916.txt
Created February 22, 2019 15:35
log after automatic boot-repair
This file has been truncated, but you can view the full file.
Boot Info Script 8f991e4 + Boot-Repair extra info [Boot-Info 25oct2017]
============================= Boot Info Summary: ===============================
=> Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos3)/boot/grub. It also embeds following components:
modules
CC=gcc
#CXX=g++
CXX=$(shell root-config --cxx)
RM=rm -f
#CPPFLAGS=-g $(shell root-config --cflags)
CPPFLAGS=$(shell root-config --cflags)
LDFLAGS=-g $(shell root-config --ldflags)
LDLIBS=$(shell root-config --libs)
SRCS=main.cpp item.cpp item.h backpack.cpp backpack.h constants.h
@adabo
adabo / console
Created February 23, 2019 22:55
cmd output
abel@smopki:~/Documents/programming/c++/console_test/source$ make
make: root-config: Command not found
make: root-config: Command not found
make: root-config: Command not found
Makefile:16: *** missing separator. Stop.
@adabo
adabo / log
Created February 24, 2019 17:14
eclipse error log
!SESSION Sun Feb 24 11:05:05 CST 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-02-24 11:05:05.610
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
-startup
plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar
--launcher.library
/home/abel/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.900.v20180922-1751
-product
org.eclipse.epp.package.cpp.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
@adabo
adabo / config.ini
Created February 24, 2019 19:03
eclipse config file
#This configuration file was written by: org.eclipse.oomph.p2.internal.core.AgentImpl
#Sun Feb 24 10:43:56 CST 2019
eclipse.product=org.eclipse.platform.ide
osgi.splashPath=file\:/home/abel/.p2/pool/plugins/org.eclipse.platform_4.10.0.v20181206-0815
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
osgi.bundles.defaultStartLevel=4
eclipse.application=org.eclipse.ui.ide.workbench
[email protected]/workspace
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.3.200.v20181101-1115.jar@1\:start
eclipse.p2.data.area=file\:/home/abel/.p2/
int main()
{
std::vector<Room> rooms {{TOPLEFT,{{SHIELD,TORCH}}},{TOPRIGHT,{{KEY,SHIELD,KEY}}},{BOTLEFT,{{PEBBLE,PEBBLE,KEY}}},{BOTRIGHT,{{KEY,PEBBLE,SHIELD,SHIELD,KEY,PEBBLE}}}};
std::vector<Room> rooms
{
{
TOPLEFT,{
{SHIELD,TORCH}
}