This content moved here: https://exploringjs.com/impatient-js/ch_arrays.html#quickref-arrays
# A function to replace the `code` command | |
# | |
# With args: does what's intended. | |
# ``` | |
# > code ~/.bash_history | |
# ``` | |
# | |
# With no args, opens the first workspace it founds | |
# in the current folder, or a new workspace based | |
# on the current folder if none exists. |
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/
After discovering it chowing 2 cores, I decided to go about disabling it.
Directories
You got your hands on some data that was leaked from a social network and you want to help the poor people.
Luckily you know a government service to automatically block a list of credit cards.
The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.
The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:
YYYYMMDD
.csv.
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element
or the /deep/
path selector.
video::webkit-media-controls-timeline {
background-color: lime;
}
video /deep/ input[type=range] {
Article: http://mikegerwitz.com/papers/git-horror-story
-
faking other user's commits is easy with --author flag
$ git commit --author='Foo Bar <foo@bar.com>' -m 'some commit'
-
signing commits ensures:
- someone else can't commit as myself
-
I really commited all the commits I sign
This is a simple Python / PIL utility for taking a series of images in a tile map set and stitching them together into a single image. This is being used to convert these http://forums.bistudio.com/showthread.php?178671-Tiled-maps-Google-maps-compatible-(WIP) for www.anvilproject.com.
- Drop the stitcher.py file into the root directory of your tile map set, where all the numbered folders are
- Edit two lines in the file, these are commented - one for the number of folders and one for the number of images in each folder
- Copy a film roll (a directory of RAW images) into a directory on the machine running Darktable.
- Import the film roll into Darktable.
- Review the images using lighttable mode and remove any images that are beyond repair.
- Take a snapshot of the image so we can do a before and after comparison.
- Adjust the white balance.
- Exposure compensation and recovery.