This file contains 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
"use strict"; | |
/* | |
## author: Andres Santos (andres.santos@neoris.com) | |
## Demo usage | |
- Add the next lines to your main html file so that the cypressRecorder start working | |
- <script src="http://code.jquery.com/jquery.min.js" type="text/javascript"></script> | |
- <script src="http://www.cemexgo.com/cdn/cypress/cypressRecorder.js" type="text/javascript"></script> | |
- once you added those two scripts open your browser developer console and within the console you can run any of these two methods |
This file contains 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
function convert($size) | |
{ | |
$unit=array('b','kb','mb','gb','tb','pb'); | |
return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i]; | |
} |
This file contains 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
/* | |
Here is what I am using for my Android and IOS apps | |
Keep attention to a couple of things: | |
- Android and IOS have other directorynames for files | |
- Android devices have different root (myFSRootDirectory1 = Samsung Tab 3, msFSRootDirectory2 = Samsung SII) | |
- $cordovaFile functions prefixes all pathnames with root | |
$cordovaFileTransfer functions needs absolute pathnames | |
Here I create the prefixes for File functions and FileTransfer functions for Android and IOS | |
*/ |
This file contains 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 | |
$form->addDatePicker('date', 'Date') | |
->setDefaultValue(new DateTime()); |
This file contains 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* CodeIgniter MY_Model Class | |
* | |
* Base model with CRUD functions for CodeIgniter Framework. | |
* Bassed on Jamie Rumbelow model base class. | |
* | |
* @package CodeIgniter | |
* @subpackage Libraries |