This file contains hidden or 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
| import ast | |
| import math | |
| SAFE_FX = { | |
| 'exp': math.exp, | |
| } | |
| SAFE_NODES = set( | |
| (ast.Expression, | |
| ast.Num, |
This file contains hidden or 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
| // Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core? | |
| L.TileLayer.Common = L.TileLayer.extend({ | |
| initialize: function (options) { | |
| L.TileLayer.prototype.initialize.call(this, this.url, options); | |
| } | |
| }); | |
| (function () { | |
This file contains hidden or 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/env python | |
| """ | |
| os.walk is an awesome generator. | |
| However, I needed the same functionality, | |
| only I wanted to walk 'up' the | |
| directory tree. | |
| This allows seaching for files | |
| in directories directly above |
This file contains hidden or 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
| syntax "gitcommit" "COMMIT_EDITMSG$" | |
| color white "#.*" | |
| color green "#.(modified|deleted).*" | |
| color yellow start="# Changes.*" end="# Changed.*" | |
| color cyan start="# Untracked.*" end="diff" | |
| color cyan start="# Untracked.*" end="$$" | |
| color brightred "^deleted file mode .*" | |
| color brightgreen "^\+.*" | |
| color brightred "^-.*" | |
| color brightyellow "^(diff|index|---|\+\+\+).*" |
This file contains hidden or 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
| # This code is free software; you can redistribute it and/or modify it under | |
| # the terms of the new BSD License. | |
| # | |
| # Copyright (c) 2010, Sebastian Staudt | |
| # A nano configuration file to enable syntax highlighting of some Git specific | |
| # files with the GNU nano text editor (http://www.nano-editor.org) | |
| # | |
| # Save this file to a directory of your choice and add it to your nanorc using | |
| # include ${PATH_TO_THE_FILE}/git.nanorc |
NewerOlder