See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| 'use strict'; | |
| var contours = require('d3-contour').contours; | |
| var PNG = require('pngjs').PNG; | |
| var fs = require('fs'); | |
| var png = PNG.sync.read(fs.readFileSync('./rain.png')); | |
| var data = []; | |
| for (var i = 0; i < png.height; i++) { |
| 0-mail.com | |
| 007addict.com | |
| 020.co.uk | |
| 027168.com | |
| 0815.ru | |
| 0815.su | |
| 0clickemail.com | |
| 0sg.net | |
| 0wnd.net | |
| 0wnd.org |
This is helpful when running jupyter notebook on remote server (AWS) and tunneling into it, because with nohup the notebook process continues to run on the server even if you get disconnected from it (any running notebook code continues to run on the server without interruption, and just needs to be re-tunneled into).
In the remote server terminal, run:
nohup jupyter notebook &
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { TouchableOpacity, Modal, View } from 'react-native'; | |
| import { ViewPropTypes, withTheme } from 'react-native-elements/src/config'; | |
| import { ScreenWidth, ScreenHeight, isIOS } from 'react-native-elements/src/helpers'; | |
| import Triangle from 'react-native-elements/src/tooltip/Triangle'; | |
| import getTooltipCoordinate, { | |
| getElementVisibleWidth, |
You can use in two ways.
Directly as the pre-commit hook in your .git/hooks folder.
With Husky by updating your package.json with:
"husky": {
This hook warns you before you accidentally commit large files to git. It's very hard to reverse such an accidental commit, so it's better to prevent it in advance.
Since you will likely want this script to run in all your git repos, a script is attached to add this hook to all git repos you create / clone in the future.
Of course, you can just download it directly to the hooks in an existing git repo.
If you find this script useful, you might enjoy our more heavy-duty project FastDS, which aims to make it easier to work with versioning in data science projects.
| import os | |
| import fire | |
| import h5py | |
| import glob | |
| import tqdm | |
| import numpy as np | |
| import pandas as pd | |
| import geopandas as gpd | |
| # requires fire, h5py, tqdm, numpy, pandas, and geopandas |