Skip to content

Instantly share code, notes, and snippets.

Lili Agazadyan artlili

Block or report user

Report or block artlili

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
View all_mixins.scss
/*
Media Query mixin
See https://github.com/sass-mq/sass-mq/ for original full version.
@example scss
.element {
@include mq($from: mobile) {
color: red;
View adaptive_video
<div class="relation">
<div class="relation__offset relation__offset-16-9"></div>
<div class="relation__content">
<iframe class="video__content" src="https://www.youtube.com/embed/KFVoIzaGPYg" ></iframe>
</div>
</div>
.relation{
max-width: 560px;
position: relative;
@artlili
artlili / app.js
Created May 28, 2019
vue back to top
View app.js
Vue.component('backtotop', {
template: '#backtotop',
data: function() {
return {
isVisible: false
};
},
methods: {
initToTopButton: function() {
$(document).bind('scroll', function() {
View delete.vue
var vm = new Vue ({
el: '#app',
data: {
result: ''
},
created: function(){
this.getResult();
},
@artlili
artlili / file.vue
Created May 26, 2019
Axios upload multiple files
View file.vue
<input type="file" ref="file" multiple="multiple">
submitFiles() {
let formData = new FormData();
for( var i = 0; i < this.$refs.file.files.length; i++ ){
let file = this.$refs.file.files[i];
console.log(file);
formData.append('files[' + i + ']', file);
View instagram.py
import aiohttp
import asyncio
import os
import re
from pathlib import Path
ROOT_URL = 'https://www.instagram.com/'
PROXY = 'http://127.0.0.1:1080'
HEADERS = {
'User-Agent':
View scroll_bar.css
::-webkit-scrollbar {
width: 8px;
background: inset 0 0 6px rgba(175,193,241,0.9);
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(175,193,241,0.9);
border-radius: 0px;
}
::-webkit-scrollbar-thumb {
border-radius: 5px;
View select_ui.js
JS Placeholder
$.widget( 'app.selectmenu', $.ui.selectmenu, {
_drawButton: function() {
this._super();
var selected = this.element
.find( '[selected]' )
.length,
placeholder = this.options.placeholder;
if (!selected && placeholder) {
@artlili
artlili / webpack.mix.js
Created May 16, 2019
laravel webpack mix
View webpack.mix.js
let mix = require('laravel-mix');
const path = require('path')
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
View mixins.scss
@function rem($pixels, $context: $base-font-size) {
@if (unitless($pixels)) {
$pixels: $pixels * 1px;
}
@if (unitless($context)) {
$context: $context * 1px;
}
@return $pixels / $context * 1rem;
You can’t perform that action at this time.