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
################################################################################### | |
# Welcome Info | |
################################################################################### | |
echo -ne "${red}Hoje é:\t\t${cyan}" `date`; echo "" | |
echo -e "${red}Kernel: \t${cyan}" `uname -smr` | |
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting | |
################################################################################### |
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
if (version_compare(PHP_VERSION, '7.2.0', '>=')) { | |
// Ignores notices and reports all other kinds... and warnings | |
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); | |
// error_reporting(E_ALL ^ E_WARNING); // Maybe this is enough | |
} |
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
sudo apt-get update | |
/** | |
* Nginx | |
*/ | |
sudo apt-get install nginx | |
/** | |
* mysql | |
*/ |
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
sudo apt-get update | |
/** | |
* phpmyadmin | |
*/ | |
sudo apt-get install phpmyadmin php-mbstring php-gettext | |
/** | |
* Habilite as extensões | |
*/ |
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
import { Alert as AlertReact } from 'react-native' | |
export const AlertError = (title, | |
message = `Erro inesperado! Por favor tente novamente mais tarde`, | |
problem = null) => { | |
AlertReact.alert( | |
title, | |
problem ? `${message} \n ${problem}` : message, | |
[ | |
{text: 'Ask me later', onPress: () => console.log('Ask me later pressed')}, |
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
const HomeTab = createMaterialTopTabNavigator({ | |
Tab1: HomeScreen, | |
Tab2: HomeScreen02, | |
Tab3: HomeScreen03, | |
Tab4: HomeScreen04, | |
Tab5: HomeScreen05, | |
Tab6: HomeScreen06, | |
Tab7: HomeScreen07, | |
}, { | |
tabBarOptions: { |
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
"plugins": [ | |
["module-resolver", { | |
"root": ["./app"], | |
"alias": { | |
"@api": "./app/src/api", | |
"@components": "./app/src/components", | |
"@screen": "./app/src/screens", | |
"@store": "./app/src/store", | |
"!config": "./app/config" | |
} |
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 | |
preg_match('/MSIE (.*?);/', $_SERVER['HTTP_USER_AGENT'], $matches); | |
if(count($matches) < 2) | |
{ | |
preg_match('/Trident\/\d{1,2}.\d{1,2}; rv:([0-9]*)/', $_SERVER['HTTP_USER_AGENT'], $matches); | |
} |
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
_renderImage(image) { | |
let contentHeight = scaleModerate(375, 1) | |
let height = Dimensions.get('window').height - contentHeight | |
let width = Dimensions.get('window').width | |
image = (<Image style={[style.image, {height, width}]} | |
source={ backgroundImg }/>) | |
return image | |
} |
OlderNewer