Skip to content

Instantly share code, notes, and snippets.

@abraovic
abraovic / SimpleLogger.php
Last active February 8, 2018 09:03
Enables simple logging into a file for php applications. It is tested only on linux machines so it will need some improvements to work on other platforms.
<?php
/**
* The MIT License (MIT)
* Copyright (c) 2016 Ante Braović - abraovic@gmail.com - antebraovic.me
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
// abCalendar.js
// ide by: http://www.phpjabbers.com/how-to-make-a-php-calendar-php26.html
(function ($) {
$.fn.abCalendar = function (options) {
var settings = $.extend({
datesTaken: false,
showWeekends: true
}, options);