Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
pet the duck until exploded

Oleg Abrazhaev seyfer

💭
pet the duck until exploded
View GitHub Profile
View snippet of package.json scripts
"scripts": {
"serve": "vue-cli-service serve",
"build:admin": "rimraf vue.config.js && copy vue.configAdmin.js vue.config.js && vue-cli-service build --dest dist/admin src/admin/main.js && rimraf vue.config.js && copy vue.configDefault.js vue.config.js",
"build:client": "rimraf vue.config.js && copy vue.configClient.js vue.config.js && vue-cli-service build --dest dist/client src/client/main.js && rimraf vue.config.js && copy vue.configDefault.js vue.config.js",
"lint": "vue-cli-service lint"
},
@Raistlfiren
Raistlfiren / Dockerfile
Last active May 19, 2021
XDebug 3 and Docker Reference
View Dockerfile
FROM php:7.4-cli-alpine
# Install xdebug
RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug \
&& apk del .phpize-deps
WORKDIR /var/www/html
@seyfer
seyfer / gource.sh
Last active Nov 18, 2020 — forked from cgoldberg/gource.sh
Gource - Mir development video
View gource.sh
# install bzr and gource
# get a branch of Mir's trunk code
# create gource video
$ sudo apt-get install bzr gource
$ bzr branch lp:mir
$ cd mir
$ gource \
-s .06 \
View frontend interviews
HTML
- Semantic HTML
- Event delegation
- Accessibility / ARIA
CSS
- Specificity
- Pseudo-elements
- Pseudo-selectors
- Combinators
View data structures and algorithms
Data Structures
- Stacks
- Queues
- Linked lists
- Graphs
- Trees
- Tries
Concepts
- Big O Notation
@IMelker
IMelker / code_format.sh [recursive clang-format]
Last active Jul 26, 2019
clang-format wrapper for multifile ussage [cpp]
View code_format.sh [recursive clang-format]
#!/bin/bash
# ------------------------------------------------------------
# Recursive cpp code formatter based on clang-format
# For base work there is you need to have .clang-format file
#
# USAGE code_format.sh [clang-format-options] [<file|dir> ...]
#
# clang-format-options passes through to clang-format
# ------------------------------------------------------------
View snippet of package.json scripts
"scripts": {
"serve": "vue-cli-service serve",
"build:admin": "rimraf vue.config.js && copy vue.configAdmin.js vue.config.js && vue-cli-service build --dest dist/admin src/admin/main.js && rimraf vue.config.js && copy vue.configDefault.js vue.config.js",
"build:client": "rimraf vue.config.js && copy vue.configClient.js vue.config.js && vue-cli-service build --dest dist/client src/client/main.js && rimraf vue.config.js && copy vue.configDefault.js vue.config.js",
"lint": "vue-cli-service lint"
},
@ejlofgren
ejlofgren / snippet of package.json scripts
Last active Feb 4, 2021
Sample Split Vue Config Files
View snippet of package.json scripts
"scripts": {
"serve": "vue-cli-service serve",
"buildAdmin": "vue-cli-service build --dest dist/admin src/entries/admin_app_entry.js",
"buildMain": "vue-cli-service build --dest dist/public src/entries/main_app_entry.js",
"lint": "vue-cli-service lint"
},
@ofer-papaya
ofer-papaya / fullstory.d.ts
Created Feb 18, 2019
Fullstory API typescript definitions
View fullstory.d.ts
interface Fullstory {
identify(uid: string): void;
setUserVars(userVars: object): void;
getCurrentSessionURL(): string;
log(msg: string);
log(level: string, msg: string);
shutdown();
restart();
consent(consent: boolean);
}
@leilee
leilee / cl-fmt.sh
Created Dec 13, 2017
clang-format files recursively
View cl-fmt.sh
#!/bin/bash
# Variable that will hold the name of the clang-format command
FMT=""
# Some distros just call it clang-format. Others (e.g. Ubuntu) are insistent
# that the version number be part of the command. We prefer clang-format if
# that's present, otherwise we work backwards from highest version to lowest
# version.
for clangfmt in clang-format{,-{4,3}.{9,8,7,6,5,4,3,2,1,0}}; do