Skip to content

Instantly share code, notes, and snippets.

View ennjoy's full-sized avatar
🏠
Working from home

Math Solid ennjoy

🏠
Working from home
View GitHub Profile
import { apollo, gql } from '/@/apollo'
import router from '/@/router'
const state = {
accessToken: localStorage.getItem('access_token') || null
}
const getters = {}
const actions = {
import { apollo, gql } from '/@/apollo'
import router from '/@/router'
const state = {
accessToken: localStorage.getItem('access_token') || null
}
const getters = {}
const actions = {
@ennjoy
ennjoy / Index.vue
Created January 5, 2021 07:34
Particles.js config
<script setup>
const options = {
"particles": {
"number": {
"value": 400,
"density": {
"enable": true,
"value_area": 800
}
},
@ennjoy
ennjoy / new year tap vk.html
Created December 23, 2020 06:46
new year tap vk
<svg xmlns="http://www.w3.org/2000/svg" width="165" height="48" fill="none" class="TopHomeLink__svg--ny2021logo"> <style>.TopHomeLink__svg--ny2021logo {--red: #FF4F72;--green: #4BB34B;--blue: #78D2FF;--yellow: #FFD54F;}svg .lamp {animation-play-state: paused;}svg:hover .lamp {animation-play-state: running;}.lamp { --t: 2s; animation-name: blink; animation-duration: var(--t); animation-iteration-count: infinite; animation-timing-function: step-end;}.lamp:nth-child(1n) { animation-delay: calc(var(--t) / -4 * 3);}.lamp:nth-child(2n) { animation-delay: calc(var(--t) / -4 * 2);}.lamp:nth-child(3n) { animation-delay: calc(var(--t) / -4 * 1);}.lamp:nth-child(4n) { animation-delay: calc(var(--t) / -4 * 0);}@keyframes blink { 0% {fill: var(--red)} 25% {fill: var(--yellow)} 50% {fill: var(--green)} 75% {fill: var(--blue)} 100% {fill: var(--red)}} </style> <g clip-path="url(#clip0)"><path d="M11.15 5.64c-.41 1.6-1.58 2.59-2.62 2.22S7 5.9 7.4 4.32c.4-1.58 1.58-2.58 2.62-2.22 1.05.37 1.5 1.96 1.13 3.54z"
@ennjoy
ennjoy / WallController.php
Last active December 21, 2020 18:12
WallController
<?php
namespace App\Http\Controllers;
use App\Models\Wall;
use App\Models\Users;
use App\Models\Pages;
use App\Http\Resources\WallResource;
use App\Http\Resources\UsersResource;
use App\Http\Resources\PagesResource;
@ennjoy
ennjoy / swert-content-loader.html
Last active January 10, 2022 14:31
Skeleton loader IVinete
<!-- Weather -->
<div class="placeload weather-widget-placeload">
<div class="header">
<div class="inner-wrap">
<div class="img loads"></div>
<div class="content-shape loads"></div>
<div class="content-shape loads"></div>
</div>
</div>
<div class="body">
@ennjoy
ennjoy / route.js
Created December 16, 2020 07:40
route is IVinete
const routes = [
{
path: '/:pathMatch(.*)*',
component: () => import(/* webpackChunkName: "notfound" */ '../layouts/NotFound'),
meta: {
guest: true,
requiresAuth: true
}
},
{
<template>
<div class="box-heading">
<h4>Фото</h4>
<el-dropdown class="is-right">
<el-button>
<more-vertical-icon></more-vertical-icon>
</el-button>
<template v-slot:dropdown>
@ennjoy
ennjoy / Publish-Feed.vue
Created December 10, 2020 17:31
Publish-Feed.vue
<!-- Hidden Options -->
<div class="hidden-options">
<div class="target-channels">
<!-- Publication Channel -->
<div class="channel">
<div class="round-checkbox is-small">
<div>
<input checked id="checkbox-1" type="checkbox"> <label for="checkbox-1"></label>
</div>
</div>
@ennjoy
ennjoy / vk-spam-prod.js
Last active November 20, 2021 11:55
vk-spam-prod.js
const GROUP_IDS = [10190856, 24261502, 25885216, 33690971, 33764742, 39130136, 46258034, 47484197, 56558556, 59721672, 94946045, 99839307, 14731082];
let i = 0;
let limit = 1000;
const getWall = (groupId) => (
vk._api(
'wall.get', {
owner_id: -groupId
}, w => {
w.response.items.reverse()