- Problemas de modar uma aplicação Front-end hoje em dia
- SPAs - seus paranauês
- Client vs Server
- Server side rendering
- Frameworks com suporte
- Exemplos
- Com vanilla.js
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
{ | |
"expo": { | |
"name": "vystoria-app", | |
"description": "This project is really great.", | |
"slug": "vystoria-app", | |
"privacy": "public", | |
"sdkVersion": "24.0.0", | |
"platforms": ["ios", "android"], | |
"version": "1.0.0", | |
"orientation": "portrait", |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/igorhalfeld/.oh-my-zsh" | |
export ANDROID_HOME=/usr/local/share/android-sdk | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
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
Talk --- - Aprovada! | |
----, | |
Estamos entrando em contato para confirmar sua presença no ----. | |
Tema: | |
---- |
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
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey |
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
ex -s +"g/pattern-goes-here/d" -cwq file-goes-here.txt |
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 { Dimensions } from 'react-native'; | |
export const { width, height } = Dimensions.get('screen'); | |
export const fontSizeResponsive = value => { | |
const tempHeight = (16 / 9) * width; | |
return ( | |
Math.sqrt(Math.pow(tempHeight, 2) + Math.pow(width, 2)) * (value / 100) | |
); | |
}; |
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
export default snakeToCamel | |
const regex = /([\-_]\w)/g | |
/** | |
* Original Source: http://stackoverflow.com/a/6661012/971592 | |
* | |
* This method converts a snake-case string to a camelCase string | |
* | |
* @param {String} s - The snake-case string to camelCase |
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 createObjectRecursive(initOb) { | |
const obj = { ...initOb } | |
return new Proxy(obj, { | |
get(_, prop) { | |
if (!obj.hasOwnProperty(prop)){ | |
obj[prop] = createObjectRecursive() | |
} | |
return obj[prop] | |
} |
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 createStore({ state, mutations }) { | |
return { | |
state: Vue.observable(state), | |
commit(key, ...args) { | |
mutations[key](state, ...args) | |
} | |
} | |
} | |
const store = createStore({ | |
state: { count: 0 }, |