shortcut | description |
---|---|
!^ |
first argument |
!$ |
last argument |
!* |
all arguments |
!:2 |
second argument |
!:2-3 |
second to third arguments |
!:2-$ |
second to last arguments |
!:2* |
second to last arguments |
!:2- |
second to next to last arguments |
Task | Conda command | Pip command | Virtualenv command |
---|---|---|---|
Install a package | conda install $PACKAGE_NAME |
pip install $PACKAGE_NAME |
X |
Update a package | conda update --name $ENV_NAME $PACKAGE_NAME |
pip install --upgrade $PACKAGE_NAME |
X |
Update package manager | conda update conda |
Linux/macOS: pip install -U pip Win: python -m pip install -U pip | X |
Uninstall a package | conda remove --name $ENV_NAME $PACKAGE_NAME |
pip uninstall $PACKAGE_NAME |
X |
Create an environment | conda create --name $ENV_NAME python=3.6 |
X | cd $ENV_BASE_DIR; virtualenv $ENV_NAME |
Activate an environment | source activate $ENV_NAME |
X | source $ENV_BASE_DIR/$ENV_NAME/bin/activate |
Deactivate an environment | source deactivate |
X | deactivate |
Search available packages | conda search $SEARCH_TERM |
pip search $SEARCH_TERM |
X |
###export bounding box for reuse export LON1=-74.259094 export LAT1=40.477398 export LON2=-73.700165 export LAT2=40.91758
###mapbbox.js
outputs a .png image using the Web Mercator (EPSG: 3857) projection
./mapbbox.js -h 480 -w 640 \ #dimensions of output image (px)
-b $LON1,$LAT1,$LON2,$LAT2 \ #bounds: lon1,lat1,lon2,lat2
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
@mixin breakpoint($point) | |
@if $point == lg | |
@media (min-width: 1200px) | |
@content | |
@else if $point == md | |
@media (min-width: 992px) and (max-width: 1199px) | |
@content | |
@else if $point == sm |
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
# A class-based template for jQuery plugins in Coffeescript | |
# | |
# $('.target').myPlugin({ paramA: 'not-foo' }); | |
# $('.target').myPlugin('myMethod', 'Hello, world'); | |
# | |
# Check out Alan Hogan's original jQuery plugin template: | |
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template | |
# | |
(($, window) -> |