Skip to content

Instantly share code, notes, and snippets.

View Oxicode's full-sized avatar

Christian QH ✔ Oxicode

View GitHub Profile
<div class="pagination pagination-large">
<ul>
<?php
echo $this->Paginator->prev(__('prev'), array('tag' => 'li'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
echo $this->Paginator->numbers(array('separator' => '','currentTag' => 'a', 'currentClass' => 'active','tag' => 'li','first' => 1));
echo $this->Paginator->next(__('next'), array('tag' => 'li','currentClass' => 'disabled'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
?>
</ul>
</div>
@Oxicode
Oxicode / core.editor
Last active August 29, 2015 13:57
GIT Sublime Text core editor
git config --global core.editor "'C:/Program Files/Sublime Text 2/sublime_text.exe' -w"
iframe {
max-width: 100%;
}
jQuery(function($) {
$('form[data-async]').live('submit', function(event) {
var $form = $(this);
var $target = $($form.attr('data-target'));
$.ajax({
type: $form.attr('method'),
url: $form.attr('action'),
data: $form.serialize(),
define(function (require) {
var module;
// Setup temporary Google Analytics objects.
window.GoogleAnalyticsObject = "ga";
window.ga = function () { (window.ga.q = window.ga.q || []).push(arguments); };
window.ga.l = 1 * new Date();
// Immediately add a pageview event to the queue.
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
#!/bin/bash
echo -e "\nbenchmark.sh -n<number of requests> -c<number of concurrency> <URL1> <URL2> ..."
echo -e "\nEx: benchmark.sh -n100 -c10 http://www.google.com/ http://www.bing.com/ \n"
## Gnuplot settings
echo "set terminal png
set output 'benchmark_${1}_${2}.png'
set title 'Benchmark: ${1} ${2}'
public function afterFilter(){
parent::afterFilter();
if (class_exists('ConnectionManager') && class_exists('ChromePhp') && Configure::read('debug') > 1) :
$logs = ConnectionManager::getDataSource('default');
$this->Oxicode->logs_console($this->request->here, array_reverse($logs->getLog()));
endif;
}
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
#!/usr/bin/perl
#
use strict;
use Net::SSLeay::Handle;
if(!defined($ARGV[0] && $ARGV[1])) {
system('clear');
print " Version 2.32 \n";