Skip to content

Instantly share code, notes, and snippets.

View npapratovic's full-sized avatar
🏠
Working from home

NIKOLA PAPRATOVIC npapratovic

🏠
Working from home
View GitHub Profile
@npapratovic
npapratovic / ajax-call-to-remote-change-DOM.html
Last active July 12, 2022 10:36
On button click start function with ajaxcall to remote to fetch data and store data in another div
<a id="clickme">Click me!</a>
<div id="populateme"></div>
<script>jQuery(function ($) {
$(document).ready(function(){
var getdest = '/session/getdest';
$(document).on('click', '#clickme', function() {
changeDiv();
});
function changeDiv() {

Requirements:

  1. Clear cache chrome extenzija: https://chrome.google.com/webstore/detail/clear-cache/cppjkneekbjaeellbfkmgnhonkkjfpdn?hl=en
  2. EditthisCookie chrome extenzija https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg?hl=en

VIZUALNI I FUNKCIONALNI PREGLED

  1. Ako su izmjene samo na razini dizajna - razmaci, fontovi, margine, labele - dovoljno je samo napraviti vizualni pregled u preglednicima, i kroz sve uređaje. (VIDI PROVJERA DIZAJNA)
  2. Ako su izmjene funkcionalnosti web stranice pr. dodavanje polja u formi, popup prozori, obavijest o kolačićima, dodavanje videa u pozadinu, integracija sa kalendarom, dodavanje novih oblika plaćanja na web stranicu itd. - tada radimo vizualni i funkcionalni pregled web stranice (VIDI PROVJERA FUNKCIONALNOSTI)
@Chaser324
Chaser324 / GitHub-Forking.md
Last active May 2, 2024 05:49
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@bzerangue
bzerangue / array2xml.php
Last active June 28, 2023 04:29
Decoding JSON to a PHP Array and then converting it to XML.
<?php
/**
* Array2XML: A class to convert array in PHP to XML
* It also takes into account attributes names unlike SimpleXML in PHP
* It returns the XML in form of DOMDocument class for further manipulation.
* It throws exception if the tag name or attribute name has illegal chars.
*
* Author : Lalit Patel
* Website: http://www.lalit.org/lab/convert-php-array-to-xml-with-attributes
* License: Apache License 2.0