Function | Shortcut |
---|---|
previous tab | ⌘ + left arrow |
next tab | ⌘ + right arrow |
go to tab | ⌘ + number |
go to window | ⌘ + Option + Number |
go to split pane by direction | ⌘ + Option + arrow |
go to split pane by order of use | ⌘ + ] , ⌘ + [ |
split window horizontally (same profile) | ⌘ + D |
split window vertically (same profile) | ⌘ + d |
This file contains 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
<?xml version="1.0"?> | |
<layers> | |
<layer | |
name="search_viewlet" | |
interface="meu.namespace.browser.viewlet.ISearch" | |
/> | |
</layers> |
This file contains 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
<browser:page | |
for="*" | |
name="getdocument_view" | |
class=".getdocument.GetDocument" | |
template="getdocument.pt" | |
allowed_interface=".getdocument.IGetDocument" | |
permission="zope.Public" | |
/> |
This file contains 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
class LoginRequiredMixin(object): | |
""" | |
View mixin which requires that the user is authenticated. | |
""" | |
@method_decorator(login_required) | |
def dispatch(self, request, *args, **kwargs): | |
return super(LoginRequiredMixin, self).dispatch( | |
self, request, *args, **kwargs) |
This file contains 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
# -*- coding: utf-8 -*- | |
# $Id: offline_bootstrap.py 73407 2011-08-21 20:35:04Z glenfant $ | |
"""Offline buildout bootstraping for use on installation targets with no | |
Internet access. | |
See http://glenfant.wordpress.com/2011/07/31/bootstrap-and-install-a-buildout-based-project-without-internet-connection/ | |
We assume that the directory that contains this file has the following | |
structure: |
This file contains 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
# -*- coding: utf-8 -*- | |
import unicodedata | |
from django.core.files.storage import FileSystemStorage | |
class ASCIIFileSystemStorage(FileSystemStorage): | |
""" | |
Convert unicode characters in name to ASCII characters. |
This file contains 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
#-*- coding: utf-8 -*- | |
from Products.CMFCore.utils import getToolByName | |
from Products.CMFCore.WorkflowCore import WorkflowException | |
def create_contents(context, contents): | |
for content in contents: | |
options = None | |
if 'options' in content.keys(): |
This file contains 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 | |
#-*- coding: utf-8 -*- | |
from sys import argv | |
from math import floor, sqrt | |
def gera_numeros_primos(lista, maior_num_checado): | |
for n in lista: | |
if n > maior_num_checado: |
This file contains 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
from django.contrib.auth import authenticate, login as l | |
class LoginForm(forms.Form): | |
email = forms.EmailField( | |
label=_("Email"), | |
widget=forms.TextInput( | |
attrs={'class': 'form-control', 'placeholder': 'Email'} | |
) | |
) |
This file contains 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/bash -ue | |
# Copyright 2016 tsuru-now authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style | |
# license that can be found in the LICENSE file. | |
set -eu | |
release="" | |
codename="" |
OlderNewer