Skip to content

Instantly share code, notes, and snippets.

View talgautb's full-sized avatar
💭
¯\_(ツ)_/¯

Talgat Uspanov talgautb

💭
¯\_(ツ)_/¯
View GitHub Profile
@Iverson
Iverson / http.spec.ts
Created February 24, 2017 08:14
Angular custom Http service test
import { Injector } from '@angular/core'
import { HttpModule, RequestOptions, XHRBackend, Http, Response, ResponseOptions, ResponseType } from '@angular/http'
import { inject, TestBed } from '@angular/core/testing'
import { MockBackend, MockConnection } from '@angular/http/testing'
import { AuthService } from './auth.service'
import { Oauth2Http } from './http'
import { CookieService } from '../../cookie/ng2'
import { MockError } from '../../util/ng2/test'
/*
* Блок тумбнеила
* Ширина задается числом колонок сетки (добавлением классов grid_col_1, grid_col_2...)
* Высота вычисляется согласно пропорции (_ratio), в процентах от ширины
*/
.thumb
display inline-block
background center center no-repeat
background-size cover
@bobbygrace
bobbygrace / trello-css-guide.md
Last active February 13, 2024 14:31
Trello CSS Guide

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?