This file contains hidden or 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
| app.get('/', function (req, res) { | |
| res.write('<html>'); | |
| res.write('<h1 class="my-text">Hello</h1>'); | |
| setTimeout(function() { | |
| res.write("<div>I took too long to load, like 5 seconds!</div>"); | |
| res.write('</html>'); | |
| res.end(); | |
| }, 5000); | |
| }); |
This file contains hidden or 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 'package:flutter/material.dart'; | |
| class Update { | |
| Update({required this.description}); | |
| String description; | |
| } | |
| class MyStatefulWidget extends StatefulWidget { | |
| @override |
This file contains hidden or 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 Ember from 'ember'; | |
| import { computed, get } from '@ember/object' | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| testName: computed('appName', function() { | |
| const obj = get(this, 'x.isLoad'); | |
| console.log({obj}) | |
| return obj; | |
| }) |
This file contains hidden or 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 Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| }); |
This file contains hidden or 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
| #[macro_use] | |
| extern crate lazy_static; | |
| extern crate regex; | |
| // use std::process::{Command, Stdio}; | |
| use regex::Regex; | |
| use std::collections::HashMap; | |
| use std::fs::File; | |
| use std::io::{BufRead, BufReader, Result}; | |
| use std::vec::Vec; |
This file contains hidden or 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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| init() { | |
| this.set('test', 'hello'); | |
| } | |
| }); |
This file contains hidden or 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
| use std::thread; | |
| use std::time::Duration; | |
| use std::sync::mpsc; | |
| use std::time::Instant; | |
| fn start(label: &String) -> Instant { | |
| println!("Start {}", label); | |
| Instant::now() | |
| } |
This file contains hidden or 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 Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| }); |
This file contains hidden or 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 Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |