This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var p = new ActionReference(); | |
function arrayUnique(a){ | |
var t = [] | |
i = a.length; | |
while(i--) { | |
var f = false, | |
n = t.length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+shift+r"], "command": "reindent" }, | |
{ "keys": ["alt+w"], "command": "run_macro_file", "args": {"file": "Packages/User/wrappBrackets.sublime-macro"} } | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
// var compass = require('gulp-compass'); | |
var del = require('del'); | |
var sass = require('gulp-sass'); | |
var pleeease = require('gulp-pleeease'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var imagemin = require('gulp-imagemin'); | |
var svgstore = require('gulp-svgstore'); | |
var svgmin = require('gulp-svgmin'); | |
var spritesmith = require('gulp.spritesmith'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getContent() { | |
var listItem = 12; | |
var paginationPage = 95; | |
var iterationCount = Math.ceil(paginationPage/listItem); | |
for(var i = 1; i <= iterationCount; i++) { | |
getPageContent(i + (i-1)*12, url); | |
} | |
} | |
function getPageContent(startRow, url) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function long-shadow($point, $color) { | |
$box-shadow: 1px 1px $color; | |
@for $i from 2 through $point { | |
$box-shadow: '#{$box-shadow}, #{$i}px #{$i}px #{$color}'; | |
} | |
@return unquote($box-shadow); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$page-width: 750px, 970px, 1170px; | |
$breakpoint: 768px, 992px, 1200px; | |
$gutter: 30px; | |
$column: 12; | |
// Phones (<768px) | |
// Small devices Tablets (≥768px) | |
// Medium devices Desktops (≥992px) | |
// Large devices Desktops (≥1200px) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.letter').each(function(){ | |
anime({ | |
delay: index*200, | |
targets: '.letter:nth-child('+index+')', | |
translateY: '4rem', | |
opacity: 1, | |
borderRadius: 8, | |
duration: 2000, | |
elasticity: 100 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = [3, 7, 7, 7, 7,7, 10, 10, 8, 5, 5, 5, 5, 20, 20, 1]; | |
function min_most_duplicate (arr) { | |
var result = {}, | |
max = 0, | |
res; | |
arr = arr.slice(0); // make a copy of the array | |
arr.sort(function(a, b) { return (a - b); }); // sort it numerically | |
console.log(arr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "alt+j", | |
"command": "cursorLeft", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+l", | |
"command": "cursorRight", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form autocomplete="off"> | |
<input type="text" autocomplete="off"> | |
</form> | |
<style> | |
input {outline: none;} | |
input:-webkit-autofill { | |
-webkit-box-shadow: inset 0 0 0 50px #fff !important; /* Цвет фона */ | |
-webkit-text-fill-color: #999 !important; /* цвет текста */ | |
color: #999 !important; /* цвет текста */ |
OlderNewer