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 | |
function make_paths_relative($buffer) { | |
$home_url = esc_url(home_url('/')); | |
$home_url_relative = wp_make_link_relative($home_url); | |
$home_url_escaped = str_replace('/', '\/', $home_url); | |
$home_url_escaped_relative = str_replace('/', '\/', $home_url_relative); | |
$buffer = str_replace($home_url, $home_url_relative, $buffer); |
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
function isCpfValid(strCPF) { | |
strCPF = strCPF.replace(/\./g, '').replace('-', ''); | |
var Soma; | |
var Resto; | |
Soma = 0; | |
if (strCPF == "00000000000") return false; | |
for (i=1; i<=9; i++) Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (11 - i); | |
Resto = (Soma * 10) % 11; |
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
diff --git a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m | |
index 21f1a06..2444713 100644 | |
--- a/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m | |
+++ b/node_modules/react-native/Libraries/Image/RCTUIImageViewAnimated.m | |
@@ -272,6 +272,9 @@ - (void)displayDidRefresh:(CADisplayLink *)displayLink | |
- (void)displayLayer:(CALayer *)layer | |
{ | |
+ if (!_currentFrame) { | |
+ _currentFrame = self.image; |
OlderNewer