<?php
// Initialize variables.
$db = JFactory::getDbo();
$subQuery = $db->getQuery(true);
$query = $db->getQuery(true);
// Create the base subQuery select statement.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// no direct access | |
defined( '_JEXEC' ) or die( 'Restricted access' ); | |
class PlgSystemMasterplug extends JPlugin | |
{ | |
function onUserAuthenticate() | |
{ | |
error_log('onUserAuthenticate', 0); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
public class MinHeap { | |
private ArrayList<Integer> list; | |
public MinHeap() { | |
this.list = new ArrayList<Integer>(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; | |
} |
NewerOlder