Skip to content

Instantly share code, notes, and snippets.

View eswizardry's full-sized avatar
🎯
What's up?

Bancha Rajainthong eswizardry

🎯
What's up?
View GitHub Profile

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@eswizardry
eswizardry / Creating large text file with Windows cmd
Created February 18, 2019 04:16
Creating large text file with Windows cmd
echo "This is just a sample line appended to create a big file.. " > dummy.txt
for /L %i in (1,1,14) do type dummy.txt >> dummy.txt // 1MB
// for /L %i in (1,1,18) do type dummy.txt >> dummy.txt // 32MB
@eswizardry
eswizardry / PropertyHelper.h
Created May 17, 2018 19:10 — forked from Rolias/PropertyHelper.h
Qt Auto Property Macros
#pragma once
#include <QObject>
//See Gist Comment for description, usage, warnings and license information
#define AUTO_PROPERTY(TYPE, NAME) \
Q_PROPERTY(TYPE NAME READ NAME WRITE NAME NOTIFY NAME ## Changed ) \
public: \
TYPE NAME() const { return a_ ## NAME ; } \
void NAME(TYPE value) { \
if (a_ ## NAME == value) return; \
a_ ## NAME = value; \
@eswizardry
eswizardry / prezto.sh
Created May 8, 2018 20:30 — forked from arvind-iyer/prezto.sh
Install prezto on ubuntu
#!/bin/bash
prezto.sh(){
clear
sudo apt-get install -y git
sudo apt-get update && sudo apt-get install -y zsh
# Get prezto
git clone --recursive https://github.com/sorin-ionescu/prezto.git ~/.zprezto
# Backup zsh config if it exists
@eswizardry
eswizardry / mat_to_csv.py
Last active February 8, 2018 09:31 — forked from techedlaksh/mat_to_csv.py
Converting mat files to csv using python, scipy and pandas
import scipy.io
import pandas as pd
mat = scipy.io.loadmat('file.mat')
mat = {k:v for k, v in mat.items() if k[0] != '_'}
data = pd.DataFrame({k: pd.Series(v[0]) for k, v in mat.items()})
data.to_csv("example.csv")