Skip to content

Instantly share code, notes, and snippets.

View matheusml's full-sized avatar

Matheus Lima matheusml

View GitHub Profile
<system.webServer>
<rewrite>
<rules>
<rule name="CrawlerBotRedirect">
<match url="(.*)html"/>
<action type="Redirect" url="http://google.com" redirectType="Found" />
</rule>
</rules>
</rewrite>
Verifying I am +matheuslima on my passcard. https://onename.com/matheuslima
var counter = 0;
var increment = function(counter) {
return counter + 1;
};
var printSquares = function(n) {
if (n > 0) {
printSquares(n-1);
console.log(n*n);
}
};
<div>
<button id="button">Click me</button>
</div>
$("#button").bind("click", function() {
alert("Clicked");
});
#button {
background-color: blue;
border: none;
color: white;
padding: 5px 10px;
}
import React from 'react';
const styles = {
backgroundColor: 'blue',
border: 'none',
color: white,
padding: '5px 10px'
};
const Main = () => (
import React from 'react';
import styles from './styles.css';
const Main = () => (
<button
onClick={() => alert('Clicked')}
className={styles.button}
>Click me</button>
);
.button {
background-color: blue;
border: none;
color: white;
padding: 5px 10px;
}