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
<span>{{ message | uppercase }}</span> |
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 class='field'> | |
<input placeholder='Title' ng-model='newArticle.title' /> | |
</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
<div class='field'> | |
<input placeholder='Title' v-model='newArticle.title' /> | |
</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 React from 'react' | |
const Demo = () => { | |
const sayHi = () => | |
alert('Hi.') | |
return ( | |
<span onClick={sayHi}>Say hi!</span> | |
) | |
} |
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 Vue from 'vue' | |
new Vue({ | |
el: '#demo', | |
methods: { | |
sayHi () { | |
alert('Hi.') | |
} | |
}, | |
render (h) => { |
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
<template> | |
<div> | |
<div class='item'> | |
<div class='middle aligned content'> | |
<div class='ui fitted checkbox'> | |
<input @click='removeTask(task)' type='checkbox'> | |
<label></label> | |
</div> | |
<span class='task-text'>{{task}}</span> | |
</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
<template> | |
<div class='container'> | |
<div class='ui form'> | |
<div class='field'> | |
<div class='ui fluid action input'> | |
<input v-model='newTask' type='text' placeholder='Start typing here to create a task...'> | |
<button @click='addTask' class='ui green button'>Add Task</button> | |
</div> | |
</div> | |
</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
if let item = MediaItem(url: url) { | |
let logoImage = UIImage(named: "logo") | |
let firstElement = MediaElement(image: logoImage!) | |
firstElement.frame = CGRect(x: 0, y: 0, width: logoImage!.size.width, height: logoImage!.size.height) | |
let testStr = "Attributed Text" | |
let attributes = [ NSForegroundColorAttributeName: UIColor.white, NSFontAttributeName: UIFont.systemFont(ofSize: 35) ] | |
let attrStr = NSAttributedString(string: testStr, attributes: attributes) | |
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
let item = MediaItem(image: image) | |
let logoImage = UIImage(named: "logo") | |
let firstElement = MediaElement(image: logoImage!) | |
firstElement.frame = CGRect(x: 0, y: 0, width: logoImage!.size.width, height: logoImage!.size.height) | |
let testStr = "Test Attributed String" | |
let attributes = [ NSForegroundColorAttributeName: UIColor.white, NSFontAttributeName: UIFont.systemFont(ofSize: 35) ] | |
let attrStr = NSAttributedString(string: testStr, attributes: attributes) |
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
let item = MediaItem(image: image) | |
let logoImage = UIImage(named: "logo") | |
let firstElement = MediaElement(image: logoImage!) | |
firstElement.frame = CGRect(x: 0, y: 0, width: logoImage!.size.width, height: logoImage!.size.height) | |
let secondElement = MediaElement(image: logoImage!) | |
secondElement.frame = CGRect(x: 300, y: 300, width: logoImage!.size.width, height: logoImage!.size.height) | |