Does this create cause the element to flash for a brief millisecond?
document.body.appendChild(el);
el.style.display = none'No. There's no race condition. All this code takes place before a rendering is ever triggered.
| --ignore-file=ext:map | |
| --ignore-file=ext:sql | |
| --ignore-file=ext:log | |
| --ignore-dir=dist | |
| --ignore-dir=public | |
| --ignore-dir=bower_components | |
| --ignore-dir=node_modules | |
| --ignore-dir=tmp | |
| --ignore-dir=vendor |
| syntax on | |
| set nocompatible | |
| set number | |
| set tabstop=2 | |
| set shiftwidth=2 | |
| set expandtab | |
| set swapfile | |
| set dir=~/tmp | |
| set hlsearch | |
| filetype indent plugin on |
| # Jake Archibald In The Loop: | |
| Does this create cause the element to flash for a brief millisecond? | |
| ```js | |
| document.body.appendChild(el); | |
| el.style.display = none' | |
| ``` | |
| No. There's no race condition. All this code takes place before a rendering is ever triggered. |
| import Ember from 'ember'; | |
| import { task } from 'ember-concurrency'; | |
| function* fetchStuff() { | |
| console.log('In fetchStuff'); | |
| yield *fetchMoreStuffGeneratorFn(); | |
| // fetchMoreStuff(); | |
| } | |
| function* fetchMoreStuffGeneratorFn() { |
| #!/usr/bin/python | |
| import sys | |
| import re | |
| name = sys.argv[1] | |
| def classify(name): | |
| names = [] |
| import GlimmerComponent from '@glimmer/component'; | |
| import { tracked } from '@glimmer/tracking'; | |
| import EmberComponent from '@ember/component'; | |
| import { action } from '@ember/object'; | |
| import { guidFor } from '@ember/object/internals'; | |
| import { addObserver } from '@ember/object/observers'; | |
| function myAction(_target, _name, descriptor) { | |
| const original = descriptor.value; |
| /* This is just a demonstration of how to write an ierator from scratch */ | |
| function range(limit) { | |
| var i = 0; | |
| return { | |
| [Symbol.iterator]: function() { | |
| return this; | |
| }, | |
| next: function() { | |
| if (i < limit) { |
| #!/usr/bin/python3 | |
| import csv | |
| import io | |
| import json | |
| import pdb | |
| import sys | |
| from collections import OrderedDict | |