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 { lazy } from "solid-js"; | |
import { Routes, Route, Link } from "solid-app-router" | |
const Users = lazy(() => import("./pages/Users")); | |
const Home = lazy(() => import("./pages/Home")); | |
export default function App() { | |
return <> | |
<h1>My Site with Lots of Pages</h1> | |
<nav> | |
<Link href="/about">About</Link> |
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 { render } from 'solid-js/web'; | |
import { Component } from 'solid-js'; | |
import { createSignal, For } from 'solid-js'; | |
const App: Component = () => { | |
const [cats, setCats] = createSignal([ | |
{ id: 'J---aiyznGQ', name: 'Keyboard Cat' }, | |
{ id: 'z_AbfPXTKms', name: 'Maru' }, | |
{ id: 'OUtn3pvWmpg', name: 'Henri The Existential Cat' } | |
]); |
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 { createSignal, createResource } from "solid-js"; | |
import { createMutable } from "solid-js/store"; | |
export const list = createMutable({ | |
items: JSON.parse( | |
window.localStorage.getItem("cart") ?? "[]" | |
), | |
get count() { | |
return this.items.length; | |
}, |
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 { render } from 'solid-js/web'; | |
import { createSignal, createMemo } from 'solid-js'; | |
function fibonacci(num) { | |
if (num <= 1) return 1; | |
return fibonacci(num - 1) + fibonacci(num - 2); | |
} | |
function Counter() { |
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 { render } from "solid-js/web"; | |
import { Component, createSignal } from "solid-js"; | |
const Counter: Component = () => { | |
const [count, setCount] = createSignal(0); | |
setInterval(() => setCount(count() + 1), 1000); | |
const doubleCount = () => count() * 2; | |
return <div>Count: {count()} - Double Count: {doubleCount()}</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
import { Component } from 'solid-js'; | |
const BasicComponent: Component<{value: string;}> = ({ value }) => { | |
return <div class="container">{value}</div>; | |
}; | |
export default function Form() { | |
const handleMouseMove = (event) => { | |
console.log(event.clientX, event.clientY); |
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
var BankOperator = (function BankOperationChecker() { | |
var checkMethods = { | |
cleanBackground: function(client) { | |
console.log('The background of ' + client.name + ' is clean.'); | |
}, | |
canGetCredit: function(client) { | |
if (client.amount > 1000) { | |
console.log(client.name + ' can get credit!'); | |
} else { | |
console.log(client.name + ' cannot get credit!'); |
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
/** | |
* Classe simples para a criação de instancias do tipo Funcionario. | |
*/ | |
public class Funcionario { | |
public String nome; //nome do funcionario | |
private double salario; //salario do funcionario | |
//Construtor para inicializar o atributo salário, que não possui acesso publico. | |
public Funcionario(double salario) { | |
this.salario = salario; |
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 ComCoesao.CalculadoraDeSarario; | |
/** | |
* Created by davivieira on 03/01/16. | |
*/ | |
public class Run { | |
public static void main(String[] args) { | |
Funcionario desenvolvedor = new ComCoesao.Funcionario(); | |
Funcionario tester = new ComCoesao.Funcionario(); |
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
{ | |
"rows": { | |
"properties": [{ | |
"name": "Logradouro", | |
"caption": "Logradouro", | |
"uniqueName": "[Logradouro].[Logradouro]", | |
"dimensionUniqueName": "[Logradouro]", | |
"description": null, | |
"hierarchyUniqueName": "[Logradouro]", | |
"calculated": false, |