Skip to content

Instantly share code, notes, and snippets.

Evgeny Rodionov evgenyrodionov

Block or report user

Report or block evgenyrodionov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@evgenyrodionov
evgenyrodionov / gist:edfe9dea12196056467f
Last active Jan 16, 2020
Clean up all cached pages in prerender.io from console
View gist:edfe9dea12196056467f
var cleanUp = function() {
$.ajax({method: "GET", url: "https://prerender.io/api/cached-pages?page=0&pageSize=1000000"}).success(function(response) {
var total = response,
lastChecked = 1;
console.log("total: " + response.length);
for(var i = 0; i < total.length; i++) {
$.ajax({
method: "DELETE",
View Remark API.md

Users

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

Apps

@evgenyrodionov
evgenyrodionov / gist:9499885
Created Mar 12, 2014
Testing elements in Ghost theme
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
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'
@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;
@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: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 / 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 / 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 */
You can’t perform that action at this time.