Skip to content

Instantly share code, notes, and snippets.

Avatar
🌎
Available for project-based work

Sergey Khmelevskoy dpmango

🌎
Available for project-based work
View GitHub Profile
View getstructure.js
async requestStructure({ dispatch, commit, getters }, { account, level, type }) {
try {
let structure = {
slot: null,
lvl1: [],
lvl2: [],
// lvl3: [],
}
const contract = getters.getMainContract
@dpmango
dpmango / moscowMetro-lines.js
Last active Jan 21, 2022
moscowMetro-lines.js
View moscowMetro-lines.js
// https://api.hh.ru/metro/1
export const METRO_LINES = [
{
id: "1",
hex_color: "E42313",
name: "Сокольническая",
stations: [
{ id: "1.148", name: "Бульвар Рокоссовского", lat: 55.814916, lng: 37.732227, order: 0 },
{ id: "1.155", name: "Черкизовская", lat: 55.802787, lng: 37.744863, order: 1 },
View getCategoryFilters.js
getCategoryFilters = computedFn((cat_id) => {
const DEV_perf = performance.now();
if (this.categoriesList && this.categoriesList.length) {
// get depths first
const category = findNodeById(this.categoriesList, cat_id);
if (category) {
const processFilters = (cat_filters) => {
// passing display list of select filters
View test.html
<div class="lesson__box" data-v-74c6614e="">
<div class="lesson__nav nav" data-v-62856932="" data-v-74c6614e="">
<div class="nav__title" data-v-62856932=""><span class="nav__title-count" data-v-62856932="">1/2</span>
Урок 1 Тема 2
</div>
<div class="nav__actions" data-v-62856932="">
<a href="#" class="nav__actions-prev" data-v-62856932="">
<svg data-v-62856932="" viewBox="0 0 20 20" preserveAspectRatio="none" class="svg-icon svg-icon--arrow-left-filled" style="width: 1em;">
<path xmlns="http://www.w3.org/2000/svg" d="M10 0.579956C14.3839 0.579956 18.2949 3.73092 19.2119 8.02164C19.6701 10.1656 19.3615 12.4453 18.3393 14.3852C17.3555 16.2522 15.7427 17.7611 13.8131 18.6162C11.806 19.5059 9.50179 19.6609 7.39219 19.0542C5.35699 18.4691 3.55243 17.1848 2.32387 15.4609C-0.244852 11.8568 0.098587 6.79428 3.12067 3.56484C4.89187 1.6722 7.40755 0.579956 10 0.579956ZM5.48107 10.5032L8.04907 13.1332C8.69923 13.7992 9.72691 12.7902 9.07939 12.1273L7.7836
View gist:baf739dfaad2b07bf77dc4e7302cf3d6
print = 'Эта переменная перекроет собой инструкцию print()'

print('И инструкция перестанет работать (при запуске вы получите ошибку)')
print = 'Эта переменная перекроет собой инструкцию print()'

print('И инструкция перестанет работать (при запуске вы получите ошибку)')
View test.json
"conference_days": [
{
"conference_day_id": 9,
"streams": [
{
"stream_id": 18,
"stream_name": "Центральный эфир",
"speeches": [
{
"speech_id": 125,
View webpack.vue.config.sass.js
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
loader: {
scss: 'vue-style-loader!css-loader!sass-loader',
},
},
},
{
View dynamic.label.example.css
// ui-dynamic-input
.ui-dynamic-input
position: relative
&__label
position: absolute
top: 19px
left: 20px
right: 10px
max-width: 100%
font-size: 14px
View boosted.marketing.update.html
<!-- SECTION marketing-->
<div class="section" data-hash="marketing">
<!-- MARKETING-->
<div class="marketing">
<div class="container">
<div class="marketing__head" data-aos="fade-up">
<div class="h2-title">Мы уделяем должное внимание маркетингу</div>
</div>
<div class="marketing__wrapper">
<div class="marketing__col" data-aos="fade-up">
View chart.js
//////////
// Chart
//////////
(function($, APP) {
APP.Plugins.Chart = {
// manual initialization
renderChart: function($chart) {
if ($chart.length === 0) return;
if ($chart.is('.is-rendered')) return;