Skip to content

Instantly share code, notes, and snippets.

View iznenad's full-sized avatar

Nenad iznenad

  • Düsseldorf <--> Belgrade
View GitHub Profile
@iznenad
iznenad / gist:a4eeba15c32f96b1fd27
Last active August 29, 2015 14:23
SchoolLocker project plan

Project preparation

In order to start working on the scope of this project we need the following:

  • Specification of the requirements for syncing Customer Group Prices

  • NAV test instance with:

    • Product data similar to live products
    • Pricing data similar to live pricing structure
  • Working credentials

package com.example.iznenad;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.data.mapping.context.PersistentEntities;
import org.springframework.data.projection.SpelAwareProxyProjectionFactory;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.core.projection.ProjectionDefinitions;
import org.springframework.data.rest.core.support.SelfLinkProvider;
import org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler;
@iznenad
iznenad / prepare_for_print.js
Created November 14, 2017 16:44
prepare_for_print
javascript:(function () {var title = document.getElementsByClassName('gh-header-title instapaper_title')[0];var body = document.getElementsByClassName('markdown-body')[0];var newDiv = document.createElement('div');newDiv.className = "container";newDiv.appendChild(title);newDiv.appendChild(body);document.getElementsByTagName('body')[0].innerText = '';document.getElementsByTagName('body')[0].appendChild(newDiv);})()