Skip to content

Instantly share code, notes, and snippets.

View dmjcomdem's full-sized avatar
🎯
Focusing

Dimonskiy dmjcomdem

🎯
Focusing
View GitHub Profile
var p = new ActionReference();
function arrayUnique(a){
var t = []
i = a.length;
while(i--) {
var f = false,
n = t.length;
[
{ "keys": ["ctrl+shift+r"], "command": "reindent" },
{ "keys": ["alt+w"], "command": "run_macro_file", "args": {"file": "Packages/User/wrappBrackets.sublime-macro"} }
]
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');
@dmjcomdem
dmjcomdem / parseGoogleSheet.gs
Last active September 16, 2017 00:15
parseGoogleSheet
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) {
@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);
}
$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)
$('.letter').each(function(){
anime({
delay: index*200,
targets: '.letter:nth-child('+index+')',
translateY: '4rem',
opacity: 1,
borderRadius: 8,
duration: 2000,
elasticity: 100
});
@dmjcomdem
dmjcomdem / min_most_duplicate.js
Created September 11, 2016 23:37
нахождение количество повторений в числовом массиве
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);
[
{
"key": "alt+j",
"command": "cursorLeft",
"when": "editorTextFocus"
},
{
"key": "alt+l",
"command": "cursorRight",
<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; /* цвет текста */