Skip to content

Instantly share code, notes, and snippets.

View rich-97's full-sized avatar

Ricardo Moreno rich-97

View GitHub Profile
@amstee
amstee / exercise-sqrt.go
Last active January 15, 2017 00:09
An answer for the exercise sqrt
func Sqrt(x float64) (z float64) {
z = 1.0
for i := 0; i < 20; i++ {
z = z - (z * z - x) / (2 * z)
}
return z
}
@rich-97
rich-97 / filter.js
Last active June 10, 2021 14:21
Example of pattern design oriented object in JavaScript.
$(document).ready(function () {
var $btn = $('.btn');
var $image = $('#img');
function Filter (config) {
this.target = config.target;
this.image = config.image;
this.filters = config.filters;
this.support = config.support === undefined ? true : config.support;
@carlosazaustre
carlosazaustre / app.js
Created February 9, 2017 23:26
Guía React
class Empleado extends React.Component {
render () {
return (
<li>
{this.props.nombre} - {this.props.email}
</li>
);
}
}
@Klerith
Klerith / plugins.md
Last active August 29, 2025 20:07
Flutter: Curso de Flutter - Instalaciones recomendadas

Programas

git config --global user.name "Tu nombre"
git config --global user.email "Tu correo"