Skip to content

Instantly share code, notes, and snippets.

View ricexen's full-sized avatar

Christian Camacho ricexen

View GitHub Profile
cpu:
                       Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3566 MHz
                       Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3288 MHz
                       Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3733 MHz
                       Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3666 MHz
                       Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3533 MHz
                       Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3347 MHz
                       Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 3042 MHz
                       Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, 2991 MHz

La historia comienza cuando desperté esta mañana (19 dic 2019). Estaba escroleando twitter como de costumbre, cuando de repente… vi (https://twitter.com/ireaderinokun/status/1207396643978534913?s=19)[ese video], me quede sorprendido, y decepcionado, eso! es lo que javascript con los números? Me pregunté. Eso... no es algo lógico y no es como si se halla hecho eso al azar…

Nosotros solo vemos lo que estamos entendiendo al leer resultados. Pero quién piensa en las pobres computadoras!... Yo, ingenuo y un poco sentimental, creí que se trataba de un tema matemático, sin embargo cuan errante me encontraba al toparme ante mis propios pensamientos doblegados ante la ya adyacente realidad. 0.1 + 0.2 es igual a casi 0.3... pero porque? me pregunté. Intrigado me comprometi a encontrar la verdad, o al menos lo lógico en esta fina línea. Propuesto a ello comencé a aventurarme en el mar de información por hoy todos conocido. Google tratándome igual que todos los días como un pedazo de número entre sus millones de resulta

import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import {
View,
Animated,
ViewPropTypes,
Easing,
} from 'react-native';
import { find } from '@Utilities/index';
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node,
]).isRequired,
import PropTypes from 'prop-types'
const Component = ({children}) => <div>{children}</div>;
Component.propTypes = {
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
]).isRequired
}
brew update # Fetch latest version of homebrew and formula.
brew tap caskroom/cask # Tap the Caskroom/Cask repository from Github using HTTPS.
brew search visual-studio-code # Searches all known Casks for a partial or exact match.
brew cask info visual-studio-code # Displays information about the given Cask
brew cask install visual-studio-code # Install the given cask.
brew cleanup # For all installed or specific formulae, remove any older versions from the cellar
const jwt = require('jsonwebtoken');
const authorization = require('./authorization');
const { session: { secret } } = require('../config');
const sign = (payload) => {
return jwt.sign(payload, secret);
}
const decodeToken = (token) => {
return jwt.verify(token, secret);
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
export const createContainer = (props, actions, component) => {
props = !Array.isArray(props) ? [props] : props;
const mapStateToProps = state => {
let states = {};
for (let i = 0; i < props.length; i++) {
const prop = props[i];
if (state[prop]) {
import React from 'react';
import { View, Picker, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
const PickerExample = ({elements}) => (
<View>
<Picker
mode={Platform.OS === 'ios' ? 'dialog' : 'dropdown'}
style={styles.picker}
selectedValue={this.state.quantityType}
onValueChange={this.changeType}