Sometimes I have multiple jQuery variables that I want to perform the same action on. So I find myself doing something like...
var $header = $( 'body > header' );
var $nav = $( 'body > nav.burger-menu' );
// time and time end | |
console.time("This"); | |
let total = 0; | |
for (let j = 0; j < 10000; j++) { | |
total += j | |
} | |
console.log("Result", total); | |
console.timeEnd("This"); | |
// Memory |
Total props to Brian Cray: http://briancray.com/posts/estimated-reading-time-web-design/ |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Blog extends CI_Controller { | |
function __construct() | |
{ | |
parent::__construct(); | |
} | |
function index() |
server { | |
listen 80; | |
server_name www.justwriting.com; | |
root /data/web/www.justwriting.com; | |
index index.html index.php; | |
# set expiration of assets to MAX for caching | |
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ { | |
expires max; |
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* CodeIgniter Filebase Class | |
* | |
* HOW TO USE - see at the bottom of the file. | |
* | |
* @package CodeIgniter | |
* @subpackage Third Party |
<?php | |
(defined('BASEPATH')) OR exit('No direct script access allowed'); | |
/** | |
* CI_Arr - Arr.php | |
* | |
* This class was taken from Fuelphp and adapted to be used with CodeIgniter. | |
* | |
* @package CodeIgniter | |
* @category Core |
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* Dinabase Class | |
* | |
* @package CodeIgniter | |
* @subpackage Libraries | |
* @author Kader Bouyakoub <[email protected]> | |
* @link http://www.bkader.com/ | |
* @license MIT, DBAD |
<?php | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* @package Content Delivery Network - BelanCon.com | Belanja Icon | |
* @version 1.0 | |
* @author Belancon Dev Team | |
* @copyright Copyright © 2016 Belancon - Belanja Icon. | |
* @link https://belancon.com | |
*/ |
{ | |
"_id": "d08a4d8d-5c30-42a7-a6fe-42af3d3243da1448627578734", | |
"_class": "com.geekedin.domain.entities.mongo.EDeveloper", | |
"scores": [ | |
{ | |
"technology": "CSS", | |
"score": 1141, | |
"lastCompute": { | |
"sec": 1470051310, | |
"usec": 552000 |