Skip to content

Instantly share code, notes, and snippets.

View rasy-js's full-sized avatar

Rasy rasy-js

  • Minsk
View GitHub Profile
<VirtualHost *:80>
ServerName staners.local
ServerAlias www.staners.local
ServerAdmin webmaster@localhost
DocumentRoot /var/www/staners/
SetEnv APPLICATION_ENV "development"
ErrorLog ${APACHE_LOG_DIR}/staners.local-error.log
{
"enabled_plugins": [
"SimpleReloadPlugin",
"SimpleRefresh"
]
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Popup</title>
<style>
.popup-overlay {
position: fixed;
z-index: 999;
top: 0px;
function getWindowWidth() {
return window.innerWidth || document.body.clientWidth;
}
[
// Mouse 3 column select
{
"button": "button3",
"press_command": "drag_select",
"press_args": {"by": "columns"}
},
{
"button": "button3", "modifiers": ["ctrl"],
"press_command": "drag_select",
history | awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -rn |head -n 10
<?php
/**
* @package Joomla.Site
* @subpackage Templates.protostar
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$('.gallery').magnificPopup({
delegate: 'a',
type: 'image',
gallery:{
enabled:true
},
image: {
titleSrc: 'title'
}
});
{
"enabled_plugins": [
"SimpleReloadPlugin",
"SimpleRefresh"
]
}