Skip to content

Instantly share code, notes, and snippets.

@realfirst
realfirst / url.txt
Created June 11, 2019 03:54
useful url
Parquet File format - Storage details
http://letsexplorehadoop.blogspot.com/2016/09/parquet-file-format-storage-details.html
@realfirst
realfirst / url.txt
Created June 11, 2019 03:54
useful url
Parquet File format - Storage details
http://letsexplorehadoop.blogspot.com/2016/09/parquet-file-format-storage-details.html
@realfirst
realfirst / url.txt
Created June 11, 2019 03:54
useful url
Parquet File format - Storage details
http://letsexplorehadoop.blogspot.com/2016/09/parquet-file-format-storage-details.html
@realfirst
realfirst / url.txt
Created June 11, 2019 03:54
useful url
Parquet File format - Storage details
http://letsexplorehadoop.blogspot.com/2016/09/parquet-file-format-storage-details.html
@realfirst
realfirst / url.txt
Created June 11, 2019 03:54
useful url
Parquet File format - Storage details
http://letsexplorehadoop.blogspot.com/2016/09/parquet-file-format-storage-details.html
@realfirst
realfirst / url.txt
Created June 11, 2019 03:53
useful url
Parquet File format - Storage details
http://letsexplorehadoop.blogspot.com/2016/09/parquet-file-format-storage-details.html
# doing randomization prior to splitting the data
california_housing_dataframe = california_housing_dataframe.reindex(
np.random.permutation(california_housing_dataframe.index))
@realfirst
realfirst / GIF-Screencast-OSX.md
Created April 22, 2019 10:36 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@realfirst
realfirst / macos-settings
Last active April 16, 2019 12:33
macos-settings
## ref-url: https://www.tekrevue.com/tip/show-path-finder-title-bar/
#Show the Path in the Finder Title Bar
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true; killall Finder
#turn it off and revert to showing just the active directory
defaults write com.apple.finder _FXShowPosixPathInTitle -bool false; killall Finder
## macbook how to use thinkpad usb keyboard with trackpoint
1. brew cask install steermouse
2. System preferences -> Security & privacy -> allow steermouse manager control your computer
@realfirst
realfirst / df-display.py
Created April 14, 2019 01:36
display multiple ``DataFrame``s side by side
class display(object):
"""Display HTML representation of multiple objects"""
template = """<div style="float: left; padding: 10px;">
<p style='font-family:"Courier New", Courier, monospace'>{0}</p>{1}
</div>"""
def __init__(self, *args):
self.args = args
def _repr_html_(self):
return '\n'.join(self.template.format(a, eval(a)._repr_html_())