This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"outDir": "./dist/", | |
"sourceMap": true, | |
"noImplicitAny": true, | |
"module": "commonjs", | |
"target": "es5", | |
"jsx": "react" | |
}, | |
"include": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const SRC_PATH = path.join(__dirname, '../src'); | |
module.exports = { | |
entry: "./src/App.tsx", | |
output: { | |
filename: "bundle.js", | |
path: path.join(__dirname, "../dist") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; // Importamos React | |
export interface HolaProps { compiler: string; framework: string; } | |
// 'HolaProps' describe las props del componente. | |
// State nunca se establece por lo que usamos '{}'. | |
export class HolaMundo extends React.Component<HolaProps, {}> { | |
render() { | |
return <h1>Hola desde {this.props.compiler} y {this.props.framework}!</h1>; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; // Importamos React | |
import * as ReactDOM from 'react-dom'; // Importamos ReactDOM que es el que renderiza nuestro componente en el browser | |
import { HolaMundo } from './components/HolaMundo'; // Importamos nuestro componente HolaMundo | |
// Instanciamos nuestro componente y le decimos en que elemento sera renderizado, en este caso es un elemento con ID => root | |
ReactDOM.render( | |
<HolaMundo compiler="Typescript" framework="React" />, | |
document.getElementById("root") | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title><%= htmlWebpackPlugin.options.title %></title> | |
</head> | |
<body> | |
<div id="root"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mi-proyecto/main.go | |
package main | |
import "mi-proyecto/rutas" | |
import "mi-proyecto/rutas/software" | |
func main() { | |
rutas.Saludar() | |
software.Saludar2() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Page class="page" | |
navigatingTo="onNavigatingTo" | |
xmlns="http://schemas.nativescript.org/tns.xsd"> | |
<ActionBar class="action-bar"> | |
<Label class="action-bar-title" text="Home"></Label> | |
</ActionBar> | |
<StackLayout> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Page class="{{ bgclass }}" | |
navigatingTo="onNavigatingTo" | |
xmlns="http://schemas.nativescript.org/tns.xsd"> | |
<ScrollView> | |
<StackLayout class="stacklayout_stats_page"> | |
<Label text="{{ userStats.username }}" class="user_name" textWrap="true" /> | |
<GridLayout columns="120, *" rows="auto, auto" class="gridlayout_stats_page"> | |
<Label text="Epic ID" textWrap="true" class="info_label" col="0" row="0" /> | |
<Label text="{{ userStats.uid }}" textWrap="true" class="info_value" col="1" row="0" /> | |
<Label text="Platform" col="0" row="1" class="info_label" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
In NativeScript, the app.css file is where you place CSS rules that | |
you would like to apply to your entire application. Check out | |
http://docs.nativescript.org/ui/styling for a full list of the CSS | |
selectors and properties you can use to style UI components. | |
/* | |
In many cases you may want to use the NativeScript core theme instead | |
of writing your own CSS rules. For a full list of class names in the theme | |
refer to http://docs.nativescript.org/ui/theme. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def lambda_handler(event, context): | |
print("Hola desde AWS Lambda") |