Skip to content

Instantly share code, notes, and snippets.

View mariojankovic's full-sized avatar

Mario Jankovic mariojankovic

View GitHub Profile
@mariojankovic
mariojankovic / html.json
Created August 30, 2021 14:34
VSCode HTML snippets
{
/*
// Place your snippets for HTML here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
@mariojankovic
mariojankovic / Nuxt.js .htaccess
Created June 21, 2019 10:36
.htaccess for Nuxt.js under apache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
@mariojankovic
mariojankovic / .gitlab-ci.yml
Created December 20, 2018 17:57 — forked from gdomiciano/.gitlab-ci.yml
GitLab CI configuration for Nuxt.js Deployment
# Passos que o seu Servidor de CI deverá seguir (test/build/deploy)
stages:
- deploy
# nome da tarefa do CI
deploy_prod:
# Passo a que esta tarefa pertence
stage: deploy
# definição de comandos necessários para essa tarefa
script:
@mariojankovic
mariojankovic / gulpfile.js
Created July 3, 2018 21:11 — forked from mackensen/gulpfile.js
This is an example gulpfile for managing a WordPress theme with a custom (non-LESS) CSS stylesheet. It includes tools for bumping the version and updating the version references.
// List of modules used.
var gulp = require('gulp'),
bump = require('gulp-bump'), // Generates new version.
argv = require('yargs')
.default('release', 'patch')
.argv, // CLI parser.
fs = require('fs'), // Used by bump.
semver = require('semver'), // Used by bump.
git = require('gulp-git'), // Git wrapper.
jshint = require('gulp-jshint'), // Lints JS.
@mariojankovic
mariojankovic / php.json
Created June 6, 2018 13:31
PHP/WP snippets
{
/*
// Place your snippets for PHP here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !\.(js|css|gif|jpg|jpeg|png|ico|swf|pdf|html|php|json|svg)$
RewriteCond %{REQUEST_URI} !^index
RewriteRule (.*) index.html [L]
</ifModule>
@mariojankovic
mariojankovic / Slick slider navigation
Last active August 29, 2015 14:15
This is a simple navigation/tab example for slick slider.
var afterChange = false;
$('.js-HomeSlider').slick({
arrows: false,
dots: false
});
$('.js-HomeSlider').on('beforeChange', function(event, slick, currentSlide, nextSlide) {
afterChange = true;
});