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 {Widget} from 'kitto'; | |
import './iframe.scss'; | |
class Iframe extends Widget { | |
iframe() { | |
return `<iframe src="https://www.w3schools.com"></iframe>` | |
} |
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
from contextlib import contextmanager | |
@contextmanager | |
def compliment(): | |
print 'starting compliment' | |
yield | |
print 'done complimenting' | |
with compliment(): | |
print 'You suck' |