Skip to content

Instantly share code, notes, and snippets.

feat(scope): add hat wobble
^--^ ^----^ ^------------^
| | |
| | +—> Summary in present tense
| |
| +————> Scope, f.e. "filter" or "storage"
|
+——————> Type: chore, docs, feat, fix, refactor, style, or test
@imevro
imevro / gist:edfe9dea12196056467f
Last active January 6, 2021 05:19
Clean up all cached pages in prerender.io from console
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",
@imevro
imevro / Remark API.md
Last active January 21, 2020 13:34
Remark API

Users

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

Apps

@imevro
imevro / gist:9499885
Created March 12, 2014 02:50
Testing elements in Ghost theme
@imevro
imevro / .gitconfig
Created January 4, 2014 13:40
Aliases for git
[alias]
co = checkout
ci = commit
s = status
p = push
pl = pull
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
grunt.initConfig({
sass: {
files: ['<%= yeoman.app %>/styles/{,*/}*.scss'],
tasks: ['sass:server', 'autoprefixer']
},
sass: {
server: {
files: {
'.tmp/styles/main.css': '<%= yeoman.app %>/styles/main.scss'
@imevro
imevro / gist:7517780
Created November 17, 2013 20:19
Simple way to create stacked blocks with right :hover border
.blocks-stacked {
.block {
border: 1px solid #eee;
margin-left: 0;
margin-right: 0;
z-index: 1;
&:hover {
border-color: blue;
z-index: 2;
@imevro
imevro / mixin.scss
Created November 7, 2013 13:51
Bootstrap Responsive Breakpoins.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; }
}
@imevro
imevro / gist:5403415
Created April 17, 2013 10:58
Sexy boxes for images in articles
article img {
box-shadow: 5px 5px 0 0 rgb(238, 238, 238);
padding: 10px;
border: 1px solid rgb(238, 238, 238);
}
@imevro
imevro / gist:5271006
Last active December 15, 2015 13:58
Алфавитная сортировка с разделением в объекты по первой букве
function sortByLetter( array ) {
var length = array.length,
groups = {},
item,
firstChar;
for ( var i = 0; i < length; i ++ ) {
item = array[ i ],
firstChar = item.charAt( 0 );