Skip to content

Instantly share code, notes, and snippets.

Avatar

Matheus Lima matheusml

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