Skip to content

Instantly share code, notes, and snippets.

View nvjkmr's full-sized avatar

Vijay Kumar nvjkmr

View GitHub Profile
@nvjkmr
nvjkmr / home-org.txt
Last active February 4, 2020 21:30
Linux home directory files organization
~/home/
- apps/ user-space applications
- archive/ rarely accessed, usually compressed
- cloud/ folder to synced to cloud
- config/ configuration files, kept in version control
- dev/ software development
- co/ checkout other projects
- play/ playground for tools, scripts & challenges
- sw/ main software projects
- go/ golang workspace
@joshlk
joshlk / faster_toPandas.py
Last active July 22, 2024 14:15
PySpark faster toPandas using mapPartitions
import pandas as pd
def _map_to_pandas(rdds):
""" Needs to be here due to pickling issues """
return [pd.DataFrame(list(rdds))]
def toPandas(df, n_partitions=None):
"""
Returns the contents of `df` as a local `pandas.DataFrame` in a speedy fashion. The DataFrame is
repartitioned if `n_partitions` is passed.
@XVilka
XVilka / TrueColour.md
Last active October 29, 2024 09:43
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@Starefossen
Starefossen / vim-cheats.md
Last active November 9, 2024 16:26
My vim cheat sheet for working with tabs and window splits.

Tabs

New Tab

  • :tabnew - new blank tab
  • :tabedit [file] - open file in tab

Cursor Movement

  • gt (:tabn) - next tab