Skip to content

Instantly share code, notes, and snippets.

View vanloc0301's full-sized avatar

Hà Văn Lộc vanloc0301

View GitHub Profile
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <conio.h>
#include <cstdlib>
#include <ctime>
using namespace std;
int main ()
{
<?php
namespace Simpleshop\Modules\Admin\Presenters;
use Nette\Application\UI\Presenter;
use Simpleshop\Modules\Admin\Events\MenuEvent;
use Smf\Events\IEventDispatcher;
use Smf\Menu\Control\Factory;
abstract class BasePresenter extends Presenter
{
Detect Safari (if( $.browser.safari)),
Detect IE6 and over (if ($.browser.msie && $.browser.version > 6 )),
Detect IE6 and below (if ($.browser.msie && $.browser.version <= 6 )),
Detect FireFox 2 and above (if ($.browser.mozilla && $.browser.version >= '1.8' ))