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 / 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.
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 / 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
@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 / 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 / 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 / versions.txt
Created June 28, 2017 21:44
Mame sets with parentheses
(08/27/91)
(1 player)
(11th Rallye version)
(12/1/1986)
(12/11/1985)
(12/16/1985)
(128k Ver.)
(1984)
(2 players)
(2 Players) (bootleg)
You found it, Arthur! *holy-grail*
==============================================================================
5. EX commands *ex-cmd-index* *:index*
This is a brief but complete listing of all the ":" commands, without
mentioning any arguments. The optional part of the command name is inside [].
The commands are sorted on the non-optional part of their name.
tag command action ~
@adabo
adabo / .txt
Created April 2, 2017 01:27
File names inside python36 zip
asyncio\
collections\
concurrent\
ctypes\
curses\
dbm\
distutils\
email\
encodings\
html\
@adabo
adabo / gist:0d1f1cf92ae1eb881ed09043e2126dd4
Last active March 30, 2017 17:50
Replace column of 1s with column 22-40
ECHO FilePath %1
ECHO FileDir %2
ECHO FileName %3
ECHO FileExt %4
ECHO FileNameExt %5
ECHO Language %6
ECHO SessionPath %7
ECHO CurrentSelection %8
ECHO CurrentWord %9
ECHO Replacements %10