co@3:
1 middleware
9457.52
5 middleware
9360.21
| function whatDoesItDo(val){ | |
| return val ? 1 : 2; | |
| } |
co@3:
1 middleware
9457.52
5 middleware
9360.21
| export function ComponentWithMixins( ...mixins) { | |
| class MixedComponent extends React.Component { } | |
| for( let mixin of mixins) { | |
| // TODO: Would need to handle mixin collisions... | |
| for( let name of Object.keys( mixin)) { | |
| MixedComponent.prototype[ name]= mixin[ name] | |
| } | |
| } |
| // Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
| // http://creativecommons.org/publicdomain/zero/1.0/ | |
| var version = 'v2.0.24:'; | |
| var offlineFundamentals = [ | |
| '/', | |
| '/offline/' | |
| ]; |
| """ | |
| This gist shows how to run asyncio loop in a separate thread. | |
| It could be useful if you want to mix sync and async code together. | |
| Python 3.7+ | |
| """ | |
| import asyncio | |
| from datetime import datetime | |
| from threading import Thread | |
| from typing import Tuple, List, Iterable |
| <?php | |
| /* | |
| * Least Frequently Used (LFU) is a caching algorithm in which the least frequently used cache block is removed whenever the cache is overflowed. | |
| * In LFU we check the old page as well as the frequency of that page and if the frequency of the page is larger than the old page we cannot remove it | |
| * and if all the old pages are having same frequency then take last i.e FIFO method for that and remove that page. | |
| */ | |
| include_once '../../runner.php'; |