Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
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
| # Django Export CSV admin action factory | |
| # https://gist.github.com/1411467 | |
| # | |
| # Based on http://djangosnippets.org/snippets/2020/ | |
| # and http://djangosnippets.org/snippets/1697/ | |
| # | |
| # Example usage: | |
| # | |
| # class MyUserAdmin(admin.ModelAdmin): | |
| # actions = ( |
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
| # Logging settings for django projects, works with django 1.5+ | |
| # If DEBUG=True, all logs (including django logs) will be | |
| # written to console and to debug_file. | |
| # If DEBUG=False, logs with level INFO or higher will be | |
| # saved to production_file. | |
| # Logging usage: | |
| # import logging | |
| # logger = logging.getLogger(__name__) | |
| # logger.info("Log this message") |
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
| // -------------------------------------------------- | |
| // Flexbox SASS mixins | |
| // The spec: http://www.w3.org/TR/css3-flexbox | |
| // -------------------------------------------------- | |
| // Flexbox display | |
| @mixin flexbox() { | |
| display: -webkit-box; | |
| display: -moz-box; | |
| display: -ms-flexbox; |
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
| <link rel="shortcut icon" sizes="16x16 24x24 32x32 48x48 64x64" href="favicon.ico"> | |
| <!-- Mobile (Android, iOS & others) --> | |
| <link rel="apple-touch-icon" sizes="57x57" href="favicon-57.png"> | |
| <link rel="apple-touch-icon-precomposed" sizes="57x57" href="favicon-57.png"> | |
| <link rel="apple-touch-icon" sizes="72x72" href="favicon-72.png"> | |
| <link rel="apple-touch-icon" sizes="114x114" href="favicon-114.png"> | |
| <link rel="apple-touch-icon" sizes="120x120" href="favicon-120.png"> | |
| <link rel="apple-touch-icon" sizes="144x144" href="favicon-144.png"> | |
| <link rel="apple-touch-icon" sizes="152x152" href="favicon-152.png"> |
$ npm install username/my-new-project --save-dev
$ npm install git+https://token:x-oauth-basic@github.com/username/my-new-project.git#master $ npm install git+ssh://git@github.com/username/my-new-project.git#master
$ npm install git+ssh://git@bitbucket.org/username/my-new-project.git#master --save-dev
$ npm install git+https://username:password@bitbucket.org/username/my-new-project.git#master
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Add React in One Minute</title> | |
| </head> | |
| <body> | |
| <h2>Add React in One Minute</h2> | |
| <p>This page demonstrates using React with no build tooling.</p> |
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 asyncio | |
| from django import http | |
| from django.core.urlresolvers import set_script_prefix | |
| from django.utils.encoding import force_str | |
| from django.core.handlers.wsgi import get_script_name | |
| from django_wsgi.handler import DjangoApplication | |
| import logging | |
| import logging | |
| import sys |
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
| #!/usr/bin/env bash | |
| # courtesy of : <https://ryanfb.github.io/etc/2014/11/13/command_line_ocr_on_mac_os_x.html> | |
| # Check for Homebrew, | |
| # Install if we don't have it | |
| if test ! $(which brew); then | |
| echo "Installing homebrew..." | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| fi | |
| # Ensure `homebrew` is up-to-date and ready |