View file_content_replacer.py
#!/usr/bin/env python
import os
import sys
nargs = len(sys.argv)
if not nargs == 5:
print("usage: %s search_text replace_text infile outfile" % os.path.basename(sys.argv[0]))
elif sys.argv[3] == sys.argv[4]:
View cpp_logger.h
#pragma once
#if defined(___LOG_DEBUG)
# include <iostream>
# define LOGD(...) std::cout << " " << __VA_ARGS__ << "\t - " << LOG_TAG << std::endl;
# define LOGI(...) std::cout << " " << __VA_ARGS__ << "\t - " << LOG_TAG << std::endl;
# define LOGW(...) std::cout << " * Warning: " << __VA_ARGS__ << "\t - " << LOG_TAG << std::endl;
# define LOGE(...) std::cout << " *** Error: " << __VA_ARGS__ << "\t - " << LOG_TAG << std::endl;
#elif defined(___LOG_INFO)
View DI.m3u
#EXTM3U
#EXTINF:-1,Digitally Imported - Ambient
http://pub1.diforfree.org:8000/di_ambient_hi
#EXTINF:-1,Digitally Imported - Big Room House
http://pub1.diforfree.org:8000/di_bigroomhouse_hi
#EXTINF:-1,Digitally Imported - Breaks
http://pub1.diforfree.org:8000/di_breaks_hi
View flash.sh
#! /bin/bash
# Variables
# ------------------------------------------------------------------------------
txtSuccess='\033[1;32m'
txtError='\033[0;31m'
txtNoColor='\033[0m'
View rename.sh
#! /bin/bash
source flash.sh
# Variables
# ------------------------------------------------------------------------------
pathLog=`echo $(pwd)/log.txt`
echo -n "Path to rename: "
View Factory_pattern.cpp
#include <iostream>
#include <memory>
#include <string>
struct Base
{
virtual ~Base() = default;
};
struct Derived : public Base
View .codacy-pylintrc
[MASTER]
# Specify a configuration file.
#rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Add files or directories to the blacklist. They should be base names, not
View codacy-python-default-conf.json
{
"patterns" : [{
"patternId" : "Custom_Scala_NonFatal",
"enabled" : true
}, {
"patternId" : "CSSLint_shorthand",
"enabled" : true
}, {
"patternId" : "CSSLint_errors",
"enabled" : true
View ANSIColorFix.py
import os
import platform
if os.name == 'nt' and platform.release() == '10' and platform.version() >= '10.0.14393':
# Fix ANSI color in Windows 10 version 10.0.14393 (Windows Anniversary Update)
import ctypes
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
View win10colors.cmd
@echo off
cls
echo  STYLES 
echo ^<ESC^>[0m Reset
echo ^<ESC^>[1m Bold
echo ^<ESC^>[4m Underline
echo ^<ESC^>[7m Inverse
echo.
echo  NORMAL FOREGROUND COLORS 
echo ^<ESC^>[30m Black (black)