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
import * as hookMod from 'angular2/src/router/lifecycle/lifecycle_annotations'; | |
import * as routerMod from 'angular2/src/router/router'; | |
import {isBlank, isPresent} from 'angular2/src/facade/lang'; | |
import {StringMapWrapper} from 'angular2/src/facade/collection'; | |
import {BaseException} from 'angular2/src/facade/exceptions'; | |
import { | |
DynamicComponentLoader, Directive, provide, ComponentRef, Attribute, ReflectiveInjector, | |
ViewContainerRef | |
} from 'angular2/core'; | |
import { |
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
vowel = "аеёиоуыэюя" | |
def about(value): | |
is_first_letter_vowel = value[:1] in vowel | |
prefix = "об" if is_first_letter_vowel else "о" | |
return prefix + " " + value | |
environment.filters['about'] = about |
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
public class EmptyRecyclerView extends RecyclerView { | |
private View emptyView; | |
final private AdapterDataObserver observer = new AdapterDataObserver() { | |
@Override | |
public void onChanged() { | |
checkIfEmpty(); | |
} | |
@Override | |
public void onItemRangeInserted(int positionStart, int itemCount) { |
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
# encoding: utf-8 | |
import click | |
import json | |
import os | |
from datetime import datetime | |
from datetime import timedelta | |
from icalendar import * | |
SUBJECT_DEFAULT_TIMES = [{ |
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
import os | |
import argparse | |
from argparse import ArgumentParser | |
parser = ArgumentParser(description="Generate report from code") | |
parser.add_argument("-d", dest="directory", required=True, | |
help="input directory", metavar="DIRECTORY", | |
type=str) | |
args = parser.parse_args() |
NewerOlder