Deprecated branch of ORGOS, restored for the link from StackOverflow answer
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
<div class="first-test" ></div> | |
<div class="second-test"></div> |
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 { element } from 'deku' | |
import stateful from 'deku-stateful' | |
import './styles' | |
const log = debug('app:Tabs') | |
function initialState() { | |
return { | |
activeTab: 0 | |
} |
Компонент делает из плоского списка на входе, анимированную 3d гармошку. Декларативный JSX компонент, в котором также потребовалось динамически поддерживать обновление DOM, но делается это аккуратно.
Чтобы обойтись минимумом скриптов и использовать лишь CSS3 для расщёта самой анимации, каждая следующая секция списка рекурсивно вкладывается в предыдущую (блок с reduceRight). Таким образом то, что за “сгибом”, уже поворачивается всё вместе не распадаясь на части.
import { element } from 'deku'
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
module.exports = { | |
use: [ | |
'neutrino-middleware-env', | |
'neutrino-preset-web', | |
'neutrino-preset-react', | |
'neutrino-preset-visualizer', | |
'neutrino-middleware-hot', | |
['neutrino-middleware-postcss', { | |
plugins: [ | |
require('postcss-partial-import')(), |
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
/** | |
* Муравьиный лев (antd-killer) | |
*/ | |
import * as Layout from 'modules/layout'; | |
import * as Menu from 'modules/menus'; | |
export { Button } from 'modules/buttons' |
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
;;; nix-proced-readable-mode.el --- Make proced filenames more readable in NixOS and GuixSD | |
;; © 2019-∞ Peter 11111000000 <[email protected]> | |
;; Autor: Peter 11111000000 <[email protected]> | |
;; Maintainer: Peter 11111000000 <[email protected]> | |
;; URL: https://gist.github.com/11111000000/e20247bafb425a58bd9d9198a16d56d0 | |
;; Keywords: guix nix proced | |
;; Package-Version: 0.1 | |
;; Version: 0.1 |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
OlderNewer