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 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;
@artlili
artlili / fonts.scss
Created May 15, 2019
Fonts function
View fonts.scss
$font: ("Bold": bold, "Regular": normal, "Medium": 500, "Thin": 100);
@each $style, $width in $font {
$url: $base-font-family + '-' + #{$style};
$rel_url: '/fonts/' + $url + '/' + $url;
@font-face {
font-family: $base-font-family;
src: url($rel_url + '.eot');
src: url($rel_url + '.eot?#iefix') format('embedded-opentype'),
url($rel_url + '.woff') format('woff'),
View click-outside.vue
Vue.directive('click-outside', {
bind () {
this.event = event => this.vm.$emit(this.expression, event)
this.el.addEventListener('click', this.stopProp)
document.body.addEventListener('click', this.event)
},
unbind() {
this.el.removeEventListener('click', this.stopProp)
document.body.removeEventListener('click', this.event)
},
@artlili
artlili / delete.vue
Created May 15, 2019
delete item in list
View delete.vue
v-for="(event, index) in events"
...
<button ... @click="deleteEvent(index)"
deleteEvent: function(index) {
this.events.splice(index, 1);
}
View modal.css
.modal-mask {
position: fixed;
z-index: 9998;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .5);
display: table;
transition: opacity .3s ease;
View tabs.vue
<div id="root" class="container">
<tabs>
<tab name="Services" :selected="true">
<h1>What we do</h1>
</tab>
<tab name="Pricing">
<h1>How much we do it for</h1>
</tab>
<tab name="About Us">
You can’t perform that action at this time.