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 React, {Component} from 'react'; | |
import PropTypes from 'prop-types'; | |
import {connect} from 'react-redux'; | |
import VisibilitySensor from 'react-visibility-sensor'; | |
import {logExperiment} from '@homeaway/abacus-client-utils'; | |
const style = { | |
minHeight: '1px', | |
marginTop: '-1px', | |
display: 'block' |
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
const ReactDOMServer = require('react-dom/server'); | |
const render = (reactComponent) => { | |
return new Promise((resolve, reject) => { | |
const body = []; | |
const bodyStream = ReactDOMServer.renderToNodeStream(reactComponent); | |
bodyStream.on('data', (chunk) => { | |
body.push(chunk.toString()); | |
}); | |
bodyStream.on('error', (err) => { |
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
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// | |
// the regular expression composed & commented | |
// could be easily tweaked for RFC compliance, | |
// it was expressly modified to fit & satisfy | |
// these test for an URL shortener: |
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 | |
/** | |
* Add a Header Item | |
* | |
* @access public | |
* @param string | |
* @param string | |
* @return void | |
*/ |
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 | |
header("Content-type: text/html; charset=UTF-8"); | |
$nl = '<br>'; | |
// http://bestmike007.com/2011/08/secure-data-transmission-between-pure-php-and-javascript-using-rsa/ | |
// Include Library | |
require_once(dirname(__FILE__) . '/../application/libraries/phpseclib-0.3.1/Crypt/RSA.php'); |
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 | |
class MY_Model extends CI_Model { | |
// Form validation rules | |
protected $rules; | |
// Sets form validation rules | |
protected function set_rules($field_name) | |
{ |
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 | |
/** | |
* Valida NIF de personas jurídicas y entidades en general | |
* | |
* @param string $nif NIF to check | |
* | |
* @return bool returns true on success false otherwise | |
*/ | |
function nifEntity($nif) |
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 if (!defined('BASEPATH')) exit('No direct access allowed.'); | |
class Profiles extends Auth_Controller | |
{ | |
protected $_view_path = 'profiles/'; | |
public function __construct() | |
{ | |
parent::__construct(); |
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
USERINFO | |
Array | |
( | |
[data] => Array | |
( | |
[0] => Array | |
( | |
[name] => user | |
[fql_result_set] => Array |
NewerOlder