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 React, { ReactNode } from 'react'; | |
| import styled from 'styled-components'; | |
| /** | |
| * Nice flexbox wrapper | |
| * @example <Flow col size="1rem">...</Flow> // 1rem = 1unit = 8px | |
| */ | |
| interface Props { | |
| children: ReactNode, |
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
| # | |
| # RubyReactAdmin. ActiveAdmin like controller API, возвращающее TR-D json | |
| # для отображения React-интерфейсе без js-кода для дефолтных сценариев | |
| # с несложными кастомизациями фронта по необходимости лучшими фронтовыми технологиями | |
| # | |
| # todo: render_json, render_json_error, render_json_exception | |
| # todo: | |
| module Admin |
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
| /* | |
| https://sites.google.com/site/foliantapp/project-updates/hyphenation | |
| */ | |
| function hypenate (word) { | |
| return _substitute(Array.from(word).reduce((res, c) => { | |
| return _substitute(res) + c; | |
| }, '')); | |
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script src="wasm_exec.js"></script> | |
| <script> | |
| const go = new Go(); | |
| WebAssembly.instantiateStreaming(fetch("main.wasm"), go.importObject).then((result) => { | |
| go.run(result.instance); | |
| console.log(Template('123', "Цифры из этого смс никому нельзя сообщать. Для входа в приложение Рокетбанка введите код {{ index . 0 }}")); |
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
| #!/usr/bin/env node | |
| // fixes the decaffeinate result: rm all the static initClass functions | |
| // node scripts/coffee2es6jsx/rm-initClass.mjs files | |
| // todo: rm Search.initClass(); | |
| const fs = require('fs'); | |
| const Glob = require('glob'); | |
| const parser = require("@babel/parser"); |
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
| const arr = [ | |
| 14418, | |
| 584, | |
| 1108, | |
| 1020, | |
| 363, | |
| 7073, | |
| ] | |
| const max = Math.max(...arr) |
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 React from "react"; | |
| import ReactDOM from "react-dom"; | |
| import useStateObj from "use-state-obj"; | |
| function App() { | |
| var state = useStateObj({a:1}) | |
| function handleClick() { | |
| ++state.a | |
| } |
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
| # like join, but returns an array | |
| interpose = (array, glue) -> | |
| array.reduce (res,x) -> [].concat res, glue, x | |
| export default interpose |
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
| // Временное выставление статуса | |
| class Foo extends React.PureComponent { | |
| // ... | |
| foo () { | |
| // ... | |
| this.setState({ | |
| triggered: setTimeout(() => this.setState({ triggered: null }), 500) | |
| }) | |
| } | |
| componentWillUnmount () { |