{
cred: {
token: string, // could be JWT or some kind of session token
stateCheckSum?: string // md5 or any. Used only in sensetive cases
},
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
| type BoundsT = { | |
| height: number | |
| width: number | |
| x: number | |
| y: number | |
| top: number | |
| bottom: number | |
| } | |
| function useBounds<T>(): [LegacyRef<T>, BoundsT] { | |
| const ref = useRef(null) |
Эти рекомендации не истина в последней инстанции и призваны упростить и систематизировать написание кода. Ни одна инструкция не описывает всего рабочего процесса целиком и в деталях.
- Каждая фича на фронте представлена собственной папкой
- В папке фичи собраны все связанные сущности, такие как Actions/ActionTypes/Saga/Reducer/Selector/Store/Typings/utils etc
- В папке с фичёй должна содержаться папка с компонентами. Компонентами считать сущности реализующие JSX разметку. И не имеющие подключения к Store
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
| Verifying my Blockstack ID is secured with the address 1FJLAMEhLFN1KanVRmiFSGVhnDxuDBUbKn https://explorer.blockstack.org/address/1FJLAMEhLFN1KanVRmiFSGVhnDxuDBUbKn |
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 {consumeMessage} from './WsSaga' | |
| let instance = null; | |
| function reconnect(){ | |
| console.log('reconnecting...') | |
| instance = null; | |
| const reconntction = setInterval(()=>{ | |
| if( instance === null || instance._wss.readyState !== 1){ | |
| new WsProvider() |
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/perl | |
| use warnings; | |
| use strict; | |
| use v5.18; | |
| use mp3vk_api; | |
| use utf8; | |
| my $vk = mp3vk_api->new( login => 'mail@mail.com', | |
| password => 'passwd', | |
| dir =>'Rhapsody', |
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/perl | |
| package mp3vk_api; | |
| use strict; | |
| use warnings; | |
| use Env qw(HOME); | |
| use utf8; | |
| use Encode; | |
| use URI::Escape; | |
| use HTML::Entities; |
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
| public class jHashTest | |
| { | |
| public static void main(String[] args) { | |
| jHash itr = new jHash(); | |
| String out; | |
| itr.put("1","test"); | |
| itr.put("2","test2"); | |
| itr.put("3","some data1"); | |
| itr.put("4","some data2"); | |
| itr.put("5","some data3"); |
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
| public class jHash{ | |
| private String[][] jHash = new String[4][3]; | |
| private JenkinsHash jenkinsHash = new JenkinsHash(); | |
| private int usedLimit = 0; | |
| void put(String stringKey, String stringVal){ | |
| int pc = jenkinsHash.hash32(stringKey.getBytes()); | |
| int checkKey= 0; | |
| for (int jHashLine = 0; jHashLine < jHash.length-1 ; jHashLine++){ |
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
| /** | |
| * @(#) JenkinsHash.java 2011-08-18 | |
| */ | |
| /** | |
| * This is an implementation of Bob Jenkins' hash. It can produce both 32-bit | |
| * and 64-bit hash values. | |
| * <p> | |
| * Generates same hash values as the <a | |
| * href="http://www.burtleburtle.net/bob/hash/doobs.html">original |
NewerOlder