Skip to content

Instantly share code, notes, and snippets.

🚀

Tamas Nagy tlnagy

🚀
Block or report user

Report or block tlnagy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@urschrei
urschrei / basemap_descartes.py
Last active Jun 11, 2019
How to plot Shapely Points using Matplotlib, Basemap, and Descartes
View basemap_descartes.py
"""
required packages:
numpy
matplotlib
basemap: http://matplotlib.org/basemap/users/installing.html
shapely: https://pypi.python.org/pypi/Shapely
descartes: https://pypi.python.org/pypi/descartes
random
View zotero-standalone.desktop
[Desktop Entry]
Name=Zotero Standalone
Exec=/usr/local/bin/Zotero_linux-x86_64/zotero
Icon=/usr/local/bin/Zotero_linux-x86_64/chrome/icons/default/default48.png
Type=Application
Categories=Education;
@cwestin
cwestin / aggregation.js
Created Nov 28, 2011
Mongo shell script and sample documents used for my aggregation talks 12/2011
View aggregation.js
// make sure we're using the right db; this is the same as "use aggdb;" in shell
db = db.getSiblingDB("aggdb");
// simple projection
var p1 = db.runCommand(
{ aggregate : "article", pipeline : [
{ $project : {
tags : 1,
pageViews : 1
}}
View launch_sublime_from_terminal.markdown

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

You can’t perform that action at this time.