Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| {% macro recursiveCategory(category) %} | |
| {% import _self as self %} | |
| <li> | |
| <h4><a href="{{ path(category.route, category.routeParams) }}">{{ category }}</a></h4> | |
| {% if category.children|length %} | |
| <ul> | |
| {% for child in category.children %} | |
| {{ self.recursiveCategory(child) }} | |
| {% endfor %} |
| import java.util.Hashtable; | |
| import java.io.Console; | |
| import javax.naming.Context; | |
| import javax.naming.directory.DirContext; | |
| import javax.naming.directory.InitialDirContext; | |
| public class TestAuth { | |
| public static void main(String[] args) { |
| var User = sequelize.define('User', { | |
| name: Sequelize.STRING | |
| }, { | |
| // define the mixins you want to include | |
| // could be similar to sequelize.import() | |
| mixins: [ | |
| 'CreatedAt', | |
| ... | |
| ] | |
| ] }); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Brief history of the "square brackets" as I remember it.
One of the most challenging aspects of the language are the square brackets because they look like arrays, as you just mention.
As I remember the language was inspired in smalltalk, but using C to gain speed.
The idea behind smalltalk was to send message as we do with real life objects. For instance if I ask you your age I would say something like this in natural language: