Skip to content

Instantly share code, notes, and snippets.

@intel352
intel352 / WidgetFactory.php
Last active September 20, 2019 02:18
Yii => custom WidgetFactory, adds onBeforeCreateWidget, onAfterCreateWidget events. An example of how the custom class can be used has been provided as well, in the process solving a typical Yii issue, regarding how to set the default pagesize for widgets that use dataproviders (due to dataproviders initializing pagination, by which widget pager…
<?php
// components/WidgetFactory.php
/**
* Custom WidgetFactory class
* Provides two new events:
* - onBeforeCreateWidget
* - onAfterCreateWidget
*
@Inquisitor-Sasha
Inquisitor-Sasha / WikiLogo.js
Last active August 29, 2015 13:57
Change the wiki logo for a wiki without server access to set the logo image file path or upload access to the current logo image.
/* **********************************************************************************
* MediaWiki logo replacer script
* Author: Inquisitor Sasha
* Contributors:
*
* Developed for the Orain MediaWiki free wiki hosting service
*
* Replace the current logo of the wiki with your own logo image from anywhere
* Additionally, your can change the page that the logo image will link to,
* such as if your wiki uses a different main page title from the standard
@zarzen
zarzen / create_git_repo.org
Last active March 5, 2024 00:22
Create a Git repo base on windows shared folder

Reference

http://elegantcode.com/2011/06/18/git-on-windows-creating-a-network-shared-central-repository/

Step 1: Go to the remote shared folder

using `pushd` command

pushd \\remoteServer\git\Share\Folder\Path

Step 2: Create a folder to store repository