Skip to content

Instantly share code, notes, and snippets.

Avatar

Evgeny Rodionov evgenyrodionov

View GitHub Profile
View gist:3837920
hr {
border: 0;
height: 1px;
background-image: linear-gradient(left , rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
background-image: -o-linear-gradient(left , rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
background-image: -moz-linear-gradient(left , rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
background-image: -webkit-linear-gradient(left , rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
background-image: -ms-linear-gradient(left , rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
background-image: -webkit-gradient(
@evgenyrodionov
evgenyrodionov / responsive.css
Created Feb 23, 2013
Responsive (from Twitter Bootstrap)
View responsive.css
/* Large desktop */
@media (min-width: 1200px) { }
/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) { }
/* Landscape phone to portrait tablet */
@media (max-width: 767px) { }
/* Landscape phones and down */
@evgenyrodionov
evgenyrodionov / gist:5271006
Last active Dec 15, 2015
Алфавитная сортировка с разделением в объекты по первой букве
View gist:5271006
function sortByLetter( array ) {
var length = array.length,
groups = {},
item,
firstChar;
for ( var i = 0; i < length; i ++ ) {
item = array[ i ],
firstChar = item.charAt( 0 );
@evgenyrodionov
evgenyrodionov / gist:5403415
Created Apr 17, 2013
Sexy boxes for images in articles
View gist:5403415
article img {
box-shadow: 5px 5px 0 0 rgb(238, 238, 238);
padding: 10px;
border: 1px solid rgb(238, 238, 238);
}
@evgenyrodionov
evgenyrodionov / mixin.scss
Created Nov 7, 2013
Bootstrap Responsive Breakpoins.scss
View mixin.scss
@mixin responsive($media) {
@if $media == sm {
@media (min-width: 768px) { @content; }
}
@else if $media == md {
@media (min-width: 992px) { @content; }
}
@else if $media == lg {
@media (min-width: 1200px) { @content; }
}
@evgenyrodionov
evgenyrodionov / gist:7517780
Created Nov 17, 2013
Simple way to create stacked blocks with right :hover border
View gist:7517780
.blocks-stacked {
.block {
border: 1px solid #eee;
margin-left: 0;
margin-right: 0;
z-index: 1;
&:hover {
border-color: blue;
z-index: 2;
View Gruntfile.js
grunt.initConfig({
sass: {
files: ['<%= yeoman.app %>/styles/{,*/}*.scss'],
tasks: ['sass:server', 'autoprefixer']
},
sass: {
server: {
files: {
'.tmp/styles/main.css': '<%= yeoman.app %>/styles/main.scss'
View .gitconfig
[alias]
co = checkout
ci = commit
s = status
p = push
pl = pull
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
@evgenyrodionov
evgenyrodionov / gist:9499885
Created Mar 12, 2014
Testing elements in Ghost theme
View Remark API.md

Users

  • /users
    • GET — получить список пользователей
    • POST — новый пользователь
    • /{id}
      • GET — информация по пользователю
      • POST — обновить данные пользователя
      • DELETE — удалить пользователя

Apps

You can’t perform that action at this time.