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
p Hello, world! |
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
div | |
p Hello, nesting! |
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
div.container | |
p.white-text.bg-black#chapter-one |
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
form(method="post") | |
label(for="username") Username | |
input.form-input#username(name="username") |
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
div.container | |
h1.header-large Cool Header | |
p this is a short example | |
div#some-id | |
emp.thick What do you think? | |
p Pretty weird huh? | |
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 jQuery using the google CDN --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
<script> | |
$("button.add#1").on("click", function () { | |
console.log("clicked button 1"); | |
}) | |
</script> | |
<button class="add" id="1">Button 1</button> |
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
<script> | |
document.getElementById("myBtn").addEventListener("click", function (){ | |
console.log("clicked") | |
}); | |
</script> | |
<button id="myBtn">My button</button> |
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 jQuery using the google CDN --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | |
<script> | |
$("button#fadeIn").on("click", function () { | |
$(".fadedText").fadeIn(); | |
}) | |
$("button#fadeOut").on("click", function () { | |
$(".fadedText").fadeOut(); |
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 React from 'react'; | |
import { SafeAreaView, Text, StatusBar } from 'react-native'; | |
const App = () => { | |
return ( | |
<> | |
<StatusBar barStyle="light-content" /> | |
<SafeAreaView style={{padding: 8}}> | |
<Text>Some sample text</Text> | |
</SafeAreaView> |
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 Realm from "realm"; | |
// Declare Schema | |
class BookSchema extends Realm.Object {} | |
BookSchema.schema = { | |
name: 'Book', | |
properties: { | |
title: 'string', | |
pages: 'int', | |
edition: 'int?' |
OlderNewer