Skip to content

Instantly share code, notes, and snippets.

View JohnStuartRutledge's full-sized avatar

John Rutledge JohnStuartRutledge

View GitHub Profile
@JohnStuartRutledge
JohnStuartRutledge / scopes.txt
Last active December 19, 2015 18:28 — forked from iambibhas/scopes.txt
Sublime Text 2: Snippet scopes
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CSS: source.css
@JohnStuartRutledge
JohnStuartRutledge / php_to_python.md
Last active December 18, 2015 00:18
Side by side examples of how you would write the same code in Python and PHP.

PHP to Python

You can see some more examples of PHP to Python at hyperpolyglot


PHP

$x = "nice";
@JohnStuartRutledge
JohnStuartRutledge / python_idioms.md
Last active February 23, 2023 09:56
A gist for tracking examples of idiomatic Python. The goal is to accrue a list of concrete examples to help develop an intuition of what constitutes "Pythonic" code.