Skip to content

Instantly share code, notes, and snippets.

View brunoventura's full-sized avatar
✈️
Travel and code

Bruno Ventura brunoventura

✈️
Travel and code
  • Kovi
  • Florianópolis
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello world</title>
<!-- Script tags including React -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
</head>
React.createElement("div", null,
React.createElement("img", {src: "profile.jpg", alt: "Profile photo"}),
React.createElement("h1", null, "Welcome back Ari")
);
var HelloWorld = function() {}
Object.extends(HelloWorld, React.Component)
HelloWorld.prototype.render = function() {}
class HelloWorld extends React.Component {
render() {
return (
React.createElement(
'h1',
{className: 'large'},
'Hello World'
)
);
}
class HelloWorld extends React.Component {
render() {
return (
<h1 className='large'>Hello World</h1>
);
}
}
@brunoventura
brunoventura / day1.html
Last active September 24, 2018 05:47
30 days of React samples
<html>
<head>
<meta charset="utf-8">
<title>Hello world</title>
<!-- Script tags including React -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
</head>
<body>
@brunoventura
brunoventura / medium-fetch.js
Last active February 4, 2018 14:33
Gist to demonstrate how integrate medium posts with wix collection
import { fetch } from 'wix-fetch';
import data from 'wix-data';
const USER = 'cecosmos';
const POST_BASE_PATH = `https://medium.com/${USER}/`;
const FEED_PATH = `${POST_BASE_PATH}latest?format=json`;
const IMG_CND_BASE_PATH = `https://cdn-images-1.medium.com/max/500/`;
const savePost = post => data.save('posts', {
_id: post.id,
est_gp = SymbolicRegressor ( population_size = 5000 ,
generations = 20, stopping_criteria = 0.01,
p_crossover = 0.7, p_subtree_mutation = 0.1,
p_hoist_mutation = 0.05, p_point_mutation = 0.1,
max_samples = 0.9, verbose = 1 ,
parsimony_coefficient = 0.01, random_state = 0 )
alert(1)
alert()