Skip to content

Instantly share code, notes, and snippets.

Ivan Dorić ivandoric

Block or report user

Report or block ivandoric

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
ivandoric / gulpfile.js
Last active Dec 3, 2019
Adding Svelte To Your Website Using Gulp and Webpack
View gulpfile.js
// This is the code used in video "How To Add Svelte To Your Site?"
// Check out the video here:
const gulp = require('gulp')
const sass = require('gulp-sass')
const browsersync = require('browser-sync').create()
const webpack = require('webpack')
const webpackStream = require('webpack-stream')
ivandoric /
Created Jun 19, 2019 — forked from graffic/
Downloading steam games from another computer/faster line

Framing the issue

With almost no bandwith at home, I needed a way to download DOOM that didn't involve blocking the home internet line for two days.


Using steamcmd you can use any computer to download steam games.


  1. Install it
  2. Open it and loging with your username and password: login username password
View momo.js
/* eslint-disable quote-props */
const style = theme => ({
mainNav: {
marginLeft: '-80px',
'& .menu-wrap': {
position: 'relative',
zIndex: 9
'& .logo': {
marginLeft: '20px'
View momoo.jsx
import { PureComponent, createRef, cloneElement } from 'react'
import Link from 'next/link'
import injectSheet, { withTheme } from 'react-jss'
import PropTypes from 'prop-types'
import Grid from 'components/Grid'
import LogoFull from 'static/svg/logo-full.svg'
import HamburgerFull from 'static/icons/hamburger-full.svg'
import Close from 'static/icons/close.svg'
ivandoric / wl-api.php
Created May 5, 2019
Creating WordPress Rest API Custom Endpoints
View wl-api.php
* Plugin Name: Custom API
* Plugin URI:
* Description: Crushing it!
* Version: 1.0
* Author: Art Vandelay
* Author URI:
ivandoric / settings.json
Created Apr 28, 2019
Sublime Text 3 - config
View settings.json
"always_show_minimap_viewport": true,
"atomic_save": false,
"auto_indent": true,
ivandoric / gulpfile.js
Created Apr 28, 2019
PatternLab setup with Scss support
View gulpfile.js
/** ****************************************************
* The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
***************************************************** */
let gulp = require('gulp'),
path = require('path'),
browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
argv = require('minimist')(process.argv.slice(2)),
View html
<!-- zelim -->
<section class="zelim-wrap">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-7">
<h2 class="futuraBook title">Najpopularni mobiteli na pretplatu</h2>
<div class="col-xs-12 col-sm-5 text-right hidden-xs">
<a href="#" class="btn btn-default btn-lg text-upper btn-svi-uredjaji">Svi mobiteli</a>
ivandoric / html
Created Apr 21, 2018
Portlet code example.
View html
<div class="row no-pad"> <div class="col-xs-12"> <div class="zelim-slider-wrap"> <div class="zelim-slider owl-carousel owl-theme" data-zelim-slider-id="_deviceoffer_WAR_vipnetdeviceofferr_" style="opacity: 1; display: block;"> <div class="owl-wrapper-outer"><div class="owl-wrapper" style="width: 5900px; left: 0px; display: block; transition: all 0ms ease; transform: translate3d(0px, 0px, 0px);"><div class="owl-item" style="width: 295px;"><script type="text/javascript">/*<![CDATA[*/var productViewObjects_deviceoffer_WAR_vipnetdeviceofferr_=[];var productsClickObjects_deviceoffer_WAR_vipnetdeviceofferr_=[];var productList_deviceoffer_WAR_vipnetdeviceofferr_="Najpopularniji mobiteli na pretplatu";/*]]>*/</script></div><div class="owl-item" style="width: 295px;"><div class="item" data-index="0"> <div class="device-box"> <a href="/webshop/pretplata/mobiteli-na-pretplatu/huawei-p20-lite-crni/13100" data-product-click-index="0"> <figure><img src="
ivandoric / gist:05afb0e2f40804473907d14a9ee6f50b
Created May 20, 2016
Laravel: remove file with Dropzone
View gist:05afb0e2f40804473907d14a9ee6f50b
removedfile: function(file) {
var name =;
var token = $('[name=_token').val();
var dir = $('[name=dir]').val();
type: 'POST',
headers: {'X-CSRF-Token': token},
url: '/delete-gallery-image',
data: {id: name, dir: dir },
You can’t perform that action at this time.