Command | Description |
---|---|
⌘⇧P | Command palette |
⌘KB | Show/hide sidebar |
⌃0 | Focus on sidebar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Turn array into comma-separated list | |
* @param {Array} list | |
* @return {String} | |
*/ | |
const arrayToCommaSeparated = (list) => { | |
return list.join(', '); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get a geojson with 4326 projection from a shapefile | |
ogr2ogr -f GeoJSON -t_srs crs:84 name.geojson name.shp | |
# -f format_name: GeoJSON (ESRI Shapefile, GML, MapInfo file...) | |
# -t_srs: Reproject/transform to this SRS on output (crs:84 is WGS84) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#foo').on('webkitAnimationEnd mozAnimationEnd animationend', function() { | |
// Do something after animation... | |
}); | |
// Note: transitionend fires for each property transitioned! | |
// mozTransitionEnd? | |
// oTransitionEnd for old Opera | |
$('#bar').on('webkitTransitionEnd mozTransitionEnd otransitionend oTransitionEnd transitionend', function() { | |
// Do something after transition... | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]--> | |
<!--[if IE 7 ]> <html class="ie7"> <![endif]--> | |
<!--[if IE 8 ]> <html class="ie8"> <![endif]--> | |
<!--[if IE 9 ]> <html class="ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html class=""> <!--<![endif]--> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.aspect-ratio { | |
display: block; | |
height: 0; /* we have padding-bottom instead height (content + padding - bottom) */ | |
padding-bottom: 56.25%; /* 16:9 ratio -> (9 ÷ 16) × 100 = 56.25 */ | |
overflow: hidden; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References: | |
# https://help.github.com/articles/generating-ssh-keys/ | |
# https://help.github.com/articles/working-with-ssh-key-passphrases/ | |
############################################################################### | |
# 1. Check for SSH keys | |
############################################################################### | |
# List the files in your .ssh directory, if they exist | |
ls -al ~/.ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Disable text selection highlighting. | |
* | |
* Reference: http://stackoverflow.com/questions/826782/css-rule-to-disable-text-selection-highlighting | |
*/ | |
.no-select { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Inheriting box-sizing Probably Slightly Better Best-Practice. | |
* This will give you the same result, and make it easier to change the box-sizing in plugins or other components that leverage other behavior. | |
* | |
* Reference: http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ | |
*/ | |
html { | |
box-sizing: border-box; | |
} |
NewerOlder