Skip to content

Instantly share code, notes, and snippets.

View ThreeNG's full-sized avatar

Yoshi Neil ThreeNG

View GitHub Profile
@ThreeNG
ThreeNG / excel2csv.py
Created October 17, 2018 04:41 — forked from julianthome/excel2csv.py
Python script to export excel sheets to CSV from a workbook in UTF-8
#!/usr/bin/env python
# export data sheets from xlsx to csv
from openpyxl import load_workbook
import csv
from os import sys
def get_all_sheets(excel_file):
sheets = []
@ThreeNG
ThreeNG / netrw quick reference.md
Created January 30, 2018 08:45 — forked from t-mart/netrw quick reference.md
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@ThreeNG
ThreeNG / HowToOTGFast.md
Created January 17, 2018 09:14 — forked from gbaman/HowToOTGFast.md
Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way!

###Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)
More details - http://blog.gbaman.info/?p=791

For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh in the SD card as well. By default SSH is

@ThreeNG
ThreeNG / tmux-cheatsheet.markdown
Created January 17, 2018 08:34 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ThreeNG
ThreeNG / disable_vim_auto_visual_on_mouse.txt
Created November 30, 2017 07:06 — forked from u0d7i/disable_vim_auto_visual_on_mouse.txt
Disable vim automatic visual mode on mouse select
Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
@ThreeNG
ThreeNG / Soul mate podcast
Created September 12, 2014 04:47
Word of Mouth - 12 Scientific Reasons You Shouldn't Be Looking For Your 'Soulmate' | Listen via Stitcher Radio On Demand
http://m.stitcher.com/podcast/nhpr/word-of-mouth/episode/35309882?eid=35309882&refid=eml
@ThreeNG
ThreeNG / MAIN.m
Created September 12, 2014 03:51
%Developers : Jinbo Li -- leekinboo@msn.com
% Technical university of Denmark
%Date : 30-11-2005
%Version : 1,0
close all
clear all
%set varible
% Transmit QMF Variable Declarations
tqmf=zeros(1,24);
%Receive QMF Variable Declarations
function [y,ny] = conv_m(x,nx,h,nh)
% Modified convolution routine for signal processing
% --------------------------------------------------
% [y,ny] = conv_m(x,nx,h,nh)
% y = convolution result