Skip to content

Instantly share code, notes, and snippets.

View IgorHalfeld's full-sized avatar
🍀
Making my own luck every day.

Igor Luiz Halfeld IgorHalfeld

🍀
Making my own luck every day.
View GitHub Profile

Tópicos

  • 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
{
"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",
# 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
Talk --- - Aprovada!
----,
Estamos entrando em contato para confirmar sua presença no ----.
Tema:
----
(Get-WmiObject -query 'select * from SoftwareLicensingService').OA3xOriginalProductKey
@IgorHalfeld
IgorHalfeld / remove-word.sh
Created January 17, 2019 17:41
Remove word from files with some pattern
ex -s +"g/pattern-goes-here/d" -cwq file-goes-here.txt
@IgorHalfeld
IgorHalfeld / responsive-font-size-react-native.js
Last active January 22, 2019 12:17
Create a responsive font size on React Native
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)
);
};
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
function createObjectRecursive(initOb) {
const obj = { ...initOb }
return new Proxy(obj, {
get(_, prop) {
if (!obj.hasOwnProperty(prop)){
obj[prop] = createObjectRecursive()
}
return obj[prop]
}
function createStore({ state, mutations }) {
return {
state: Vue.observable(state),
commit(key, ...args) {
mutations[key](state, ...args)
}
}
}
const store = createStore({
state: { count: 0 },