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
| { | |
| "keyboard":"preonic/rev3", | |
| "keymap":"franciscoaguirreperez", | |
| "layout":"LAYOUT_preonic_grid", | |
| "layers":[ | |
| [ | |
| "KC_ESC", | |
| "KC_1", | |
| "KC_2", | |
| "KC_3", |
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 void ThrowGrenade() | |
| { | |
| if (Time.time <= nextGrenadeTime) { return; } | |
| nextGrenadeTime = Time.time + grenadeTimeLimit; | |
| Vector3 worldMousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); | |
| Vector2 direction = new Vector2( | |
| worldMousePosition.x - transform.position.x, | |
| worldMousePosition.y - transform.position.y |
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
| " Plugins | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'dense-analysis/ale' | |
| Plug 'tpope/vim-fugitive' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'tomtom/tcomment_vim' | |
| Plug 'kien/ctrlp.vim' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'airblade/vim-gitgutter' |
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 encoderStates = { | |
| initial: 'streaming', | |
| states: { | |
| streaming: { | |
| on: { | |
| ENCODER_STOPPED: 'paused', | |
| }, | |
| }, | |
| paused: { | |
| on: { |
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
| %stack_size = 4096 | |
| // Can't test the "designate" host function because | |
| // we'd need 336 * 1023 zeroes here for correct decoding. | |
| %rw_data_size = 12 | |
| %rw_data = 00 00 00 00 00 00 00 00 00 00 00 00 | |
| // ===== JAM entrypoints ===== | |
| jump @is_authorized | |
| fallthrough | |
| fallthrough |
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 { describe, test, expect } from 'vitest'; | |
| import { createClient } from 'polkadot-api'; | |
| import { getWsProvider } from 'polkadot-api/ws-provider/web'; | |
| describe('some context', () => { | |
| const client = createClient(getWsProvider("wss://westend-penpal-rpc.polkadot.io")); | |
| test('some test', () => { | |
| expect(1).toBeGreaterThan(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
| #[test] | |
| fn whats_the_derived_account_id() { | |
| use sp_runtime::AccountId32; | |
| let account_id = AccountId32::from_ss58check("13YMK2ehDHE4hoxL9L2jq4h8zwMFpo4cZnrR7YwzgxxSH8LR").unwrap(); | |
| let result = pallet_utility::Pallet::<Runtime>::derivative_account_id(account_id, 0); | |
| let derived_account_id = result.to_ss58check_with_version(42_u16.into()); | |
| dbg!(&derived_account_id); | |
| } |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.20; | |
| interface IXcm { | |
| struct Weight { | |
| uint64 refTime; | |
| uint64 proofSize; | |
| } | |
| function xcmExecute(bytes calldata message, Weight calldata weight) external; | |
| function xcmSend(bytes calldata destination, bytes calldata message) external; |
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
| // `ahp` is the name we gave to `bun papi add`. | |
| import { | |
| ahp, | |
| DispatchRawOrigin, | |
| people, | |
| XcmV3Junction, | |
| XcmV3Junctions, | |
| XcmV3MultiassetFungibility, | |
| XcmV3WeightLimit, | |
| XcmV4AssetAssetFilter, |
OlderNewer