Skip to content

Instantly share code, notes, and snippets.

View avatsaev's full-sized avatar

Aslan Vatsaev avatsaev

View GitHub Profile
@avatsaev
avatsaev / .zshrc
Last active August 29, 2015 14:14
Handy zsh config
plugins=(git gitignore autojump command-not-found zsh-syntax-highlighting)
###############
# 1. Alias #
###############
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
#export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"
alias rake='noglob rake'
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCemYSS4QfAhkWcQQ9LMJAORmIQLHCWOg4/1C0QJLD/KFD/vY/776JBZlnl3u4C0qnPz6bGilYt9K4bHK6b8vbZluKwOHYvO8uWOEmVCI2D6XNKUBehYRsYxES8Ad62/4pdpiHnn/QKiC6PaKSHITTwHzIQ7AH76y2DtXuFHCRatQrW7irg60Y/MSg37I6Xl19p2/i3oOKIbHEmZSaPSdkgvVQd2XFviNCCqBvIRq1GqrBY+ZQthQ3eh/8hAnoqhJz8zRmFcKQHgzWWIizZ8nQRPklpoT+oP7Mlams3NvYm7BkTdKAgRVlve38w8gZyC5bATRg0iDPyl/sUwiDvwBLz a.vatsaev@gmail.com
.arch armv6
.fpu vfp
msg: .ascii "Hello ARM!\n"
.text
.align 2
.global main
main:
@avatsaev
avatsaev / rails http status codes
Created September 5, 2016 13:36 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
import { Component } from '@angular/core';
import {Angular2TokenService} from "angular2-token";
import {environment} from "../environments/environment";
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.sass']
})
export class AppComponent {
import { Component } from '@angular/core';
import {Angular2TokenService} from "angular2-token";
import {environment} from "../environments/environment";
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.sass']
})
export class AppComponent {
<app-toolbar></app-toolbar>
<div class="container">
<router-outlet></router-outlet>
</div>
<div class="row">
<div class="col s12">
<h1> Welcome</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi feugiat, dolor a aliquam ultrices, turpis nisl maximus justo, nec semper augue dolor vitae orci. Curabitur egestas posuere mauris. Quisque varius erat ac pharetra posuere. Nulla faucibus, ex in dictum porta, dui sapien vehicula nulla, nec venenatis enim purus quis justo. Sed luctus luctus aliquet. Etiam tristique feugiat risus in hendrerit. Mauris lobortis dui nec blandit fermentum. Pellentesque placerat, nunc pellentesque fringilla convallis, elit elit ultricies urna, in vehicula arcu metus efficitur metus. Integer efficitur ipsum sit amet risus tristique, congue molestie massa euismod.
</p>
</div>
</div>
<div class="modal" materialize="modal" [materializeActions]="modalActions">
<div class="modal-content">
<div class="row">
<div class="row">
<form (ngSubmit)="onSignInSubmit()" #f="ngForm" >
<div class="row">
<div class="input-field col s12">
<input id="email"
type="email"
required