Here is an example of write subquery in Joomla! 3 using JDatabase method.
<?php
// Initialize variables.
$db = JFactory::getDbo();
$subQuery = $db->getQuery(true);
$query = $db->getQuery(true);
// Create the base subQuery select statement.
let l = window.location; | |
const p = new URLSearchParams(l.search); | |
p.set('hl','en'); | |
window.location.search="?"+p.toString(); | |
//minified bookmarklet code | |
//javascript:let l=window.location,p=new URLSearchParams(l.search);p.set("hl","en");window.location.search="?"+p.toString(); |
# | |
# link: https://gist.githubusercontent.com/celly/1591cf9305734812baad/raw/ | |
# | |
# Add to you /usr/local/bin/gravity.sh file under sources= | |
# | |
# samsung 'smart tv' | |
127.0.0.1 log-1.samsungacr.com | |
127.0.0.1 log-2.samsungacr.com | |
127.0.0.1 notice.samsungcloudsolution.com |
<?php | |
// no direct access | |
defined( '_JEXEC' ) or die( 'Restricted access' ); | |
jimport('joomla.log.log'); | |
class PlgSystemMasterplug extends JPlugin | |
{ | |
function onExtensionBeforeInstall(){ | |
JLog::add(JText::_('onExtensionBeforeInstall'), JLog::WARNING); |
<?php | |
// no direct access | |
defined( '_JEXEC' ) or die( 'Restricted access' ); | |
class PlgSystemMasterplug extends JPlugin | |
{ | |
function onUserAuthenticate() | |
{ | |
error_log('onUserAuthenticate', 0); | |
} |
import java.util.ArrayList; | |
public class MinHeap { | |
private ArrayList<Integer> list; | |
public MinHeap() { | |
this.list = new ArrayList<Integer>(); | |
} |
<?php
// Initialize variables.
$db = JFactory::getDbo();
$subQuery = $db->getQuery(true);
$query = $db->getQuery(true);
// Create the base subQuery select statement.
/** Fast and simple text compression. | |
* | |
* This is a modified variant of LZ77: | |
* The algorithm inserts "marker bytes" whose bits state which | |
* of the following 8 symbols are actual symbols (0) or backward | |
* references (1). Backward references are actually two bytes, the | |
* first 6 bits encoding the length and the next 10 bits encoding | |
* the negative offset where the repetition occurred. | |
* The idea is related to LZO and LZJB compression. | |
* |
// if (!window.L) { window.L = function () { console.log(arguments);} } // optional EZ quick logging for debugging | |
/** | |
* A modified (improved?) version of the jQuery plugin design pattern | |
* See http://docs.jquery.com/Plugins/Authoring (near the bottom) for details. | |
* | |
* ADVANTAGES OF EITHER FRAMEWORK: | |
* - Encapsulates additional plugin action methods without polluting the jQuery.fn namespace | |
* - Ensures ability to use '$' even in compat modes | |
* |
@mixin box-shadow($top, $left, $blur, $color, $inset: false) { | |
@if $inset { | |
-webkit-box-shadow:inset $top $left $blur $color; | |
-moz-box-shadow:inset $top $left $blur $color; | |
box-shadow:inset $top $left $blur $color; | |
} @else { | |
-webkit-box-shadow: $top $left $blur $color; | |
-moz-box-shadow: $top $left $blur $color; | |
box-shadow: $top $left $blur $color; | |
} |