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
... | |
@NgModule({ | |
imports: [RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' })], | |
exports: [RouterModule] | |
}) | |
export class AppRoutingModule {} |
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
<input class="iconized" type="text" [ngModel]="search" (ngModelChange)="onChangeSarch($event)" /> |
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
[alias] | |
co = checkout | |
push-origin = !git push -u origin \"$(git rev-parse --abbrev-ref HEAD)\" |
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 static java.util.Objects.isNull; | |
import static java.util.Objects.nonNull; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
import java.util.function.Supplier; | |
import javax.annotation.Nullable; | |
public class Pipe<E> { |
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 { Component, forwardRef } from '@angular/core'; | |
import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'; | |
const noop = () => {}; | |
export const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any = { | |
provide: NG_VALUE_ACCESSOR, | |
useExisting: forwardRef(() => ThemeCheckComponent), | |
multi: true | |
}; |
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 CooperTextView extends AppCompatTextView { | |
protected CooperTextView(Context context) { | |
super(context); | |
if(!isInEditMode()) | |
this.setTypeface(Typeface.createFromAsset(context.getAssets(), "fonts/cooper_std.ttf")); | |
} | |
public CooperTextView(Context context, AttributeSet attrs) { | |
super(context, attrs); |
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 gi.repository import Gtk, Gdk | |
class Searchbar(Gtk.Revealer): | |
__gtype_name__ = 'Searchbar' | |
#Combo Ids from ui file | |
COMBO_ALL = 0 | |
COMBO_TITLE = 1 |