I hereby claim:
- I am wachunei on github.
- I am wachunei (https://keybase.io/wachunei) on keybase.
- I have a public key whose fingerprint is 1FF2 2D06 C083 F214 8242 F57F A224 5E15 6775 F068
To claim this, I am signing this object:
| def obtener_dv rut | |
| rut = rut.to_s.tr(".-", "").reverse | |
| suma = 0 | |
| for index in 0..rut.size | |
| suma+= rut[index].to_i * (2+index%6) | |
| end | |
| res = 11 - suma % 11 | |
| res = (res == 11)? 0 : (res == 10)? "K" : res | |
| res.to_s | |
| end |
| <!-- Iterate N times (replace N with a number --> | |
| {% for i in "x"|ljust:"N" %} | |
| <!-- Access numeric variable (0-based index) --> | |
| {{ forloop.counter0 }} | |
| <!-- Access numeric variable (1-based index) --> | |
| {{ forloop.counter }} | |
| {% endfor %} | |
| <!-- For example, iterate from 0 to 3 --> |
| def print_dates(dates, answer_text) | |
| puts "\nAnswers left:" if answer_text | |
| puts dates.join("; ") | |
| print "\n" | |
| end | |
| class Day | |
| attr_accessor :month, :day | |
| def initialize(month, day) | |
| @day = day; |
| var turn = 0; | |
| var teams = ['Rupie', 'TheTeam', 'Veritas', 'ImaginApp', 'Nebuchadnezzar', 'InternalServerError']; | |
| var patoTeams = ['YisusPlusOne', 'ZipCity2000', 'tqzptscsaj']; | |
| var pedroTeams = ['String.random','ToPa']; | |
| var thomasTeams = ['LosExtraterrestresMusicales', 'Rock and Prog', 'PW:Software']; | |
| var result = teams.sort(function(){return 0.5 - Math.random();}) | |
| .reduce(function(previous, current) { | |
| previous[['pato', 'thomas', 'pedro'][turn++ % 3]].push(current); | |
| return previous; |
I hereby claim:
To claim this, I am signing this object:
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import debounce from 'lodash/debounce'; | |
| const withDebounce = (Touchable) => { | |
| class DebouncedComponent extends React.PureComponent { | |
| constructor(props) { | |
| super(props); | |
| const { onPress } = props; | |
| this.onPress = debounce(() => onPress && onPress(), 300, { |
| import React, { Component } from 'react'; | |
| import { Animated, Easing, StatusBar, MaskedViewIOS, View } from 'react-native'; | |
| class AnimatedGate extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.beginAnimation = this.beginAnimation.bind(this); | |
| this.state = { | |
| animation: new Animated.Value(0), | |
| }; |
| !.eslintrc.js |
| !.eslintrc.js |
Una recopilación de ñoñerías chicas que he hecho como usuario de Fintual.
Importante: no formo parte del equipo de fintual, todo lo que está acá no es responsabilidad de ellos. Todo lo que está acá puede fallar si el sitio o API de fintual cambia.