http://cultofmartians.com/
https://osslist.com/
https://www.codetriage.com/
http://up-for-grabs.net/
https://openhatch.org/
https://www.bountysource.com/
https://yourfirstpr.github.io/
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
class DataLoggingWatcher | |
constructor: (@$rootScope) -> | |
@$rootScope.$on 'newData', () => @logToConsole() | |
logToConsole: () => | |
console.log 'new data arrived' | |
angular.module('myApp') |
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
using System.Text.RegularExpressions; | |
public static class Highlighter | |
{ | |
private const string MatchPattern = "(?<!<[^>]*)(?<matched>{0})"; | |
private const string ReplacePattern = "<span class='highlight'>${matched}</span>"; | |
public static string Highlight(string value, string pattern) | |
{ | |
var patternEsc = string.Format(MatchPattern, Regex.Escape(pattern)); |
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
[ | |
{ | |
"id": "573f358cbd70b5b843a2d624", | |
"name": "Mendez", | |
"age": 30, | |
"gender": "male", | |
"department": "Backend", | |
"address": { | |
"city": "Moscow", | |
"street": "Fayette Street 923" |
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
Angular 2 events (close) uses round braces notation | |
<div class="widget-list"> | |
<someWidget | |
[ngClass]="{isBlue: true}" | |
*ngFor="let model of models" | |
*ngIf="isLoaded" | |
[model]="model" | |
(close)="onClose($event, model)" | |
></someWidget> | |
</div> |
Реализовать на языке Dart библиотеку (пакет). Она должна содержать внешний контракт со следующими сущностями:
Contact - readonly примитив для контакта. Поля: [id, firstName, lastName]. Для того, чтобы отредактировать контакт необходимо применить паттерн builder
ContactManager - менеджер контактов. Singletone. Позволяет:
- получить контакт по id
- создать новый контакт (как с пустыми полями, так и с предзаполненными). Считаем, что id генерируется самим менеджером
- сохранить изменённый контакт
Данные ContactManager хранит и берёт из какого-то хранилища, для задания это будет локальный json. При этом ContactManager периодически должен синхронизировать данные с хранилищем (раз в 30сек). Путь может быть захардкожен. Но стоит предполагать, что в дальнейшем работа будет переведена на БД.
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
main(List<String> arguments) { | |
var myBuilder = new MyBuilder(); | |
var buildActions = [new BuildAction(myBuilder, 'some package', inputs: ['.dart'], excludes: excludes, isOptional: isOptional)] | |
final buildResult = await build_runner.build(buildActions, //....); | |
} | |
class MyBuilder implements Builder { | |
MyBuilder(); |
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 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:flutter_sticky_header/flutter_sticky_header.dart'; | |
class _Page { | |
const _Page( | |
this.id, | |
this.title, | |
this.color, |
OlderNewer