start new:
tmux
start new with session name:
tmux new -s myname
| import { WalletContextState } from "@solana/wallet-adapter-react"; | |
| import { | |
| Transaction, | |
| Connection, | |
| SignatureStatus, | |
| ComputeBudgetProgram, | |
| } from "@solana/web3.js"; | |
| // Taken from: | |
| // https://github.com/rpcpool/solana-prioritization-fees-api/ | |
| import { |
| pub fn goofy(ctx: Context<Goofy>) -> ProgramResult { | |
| // Manually pay the fresh account some money | |
| **ctx | |
| .accounts | |
| .payer // some account owned by us, with some money | |
| .to_account_info() | |
| .try_borrow_mut_lamports()? -= 2000000; // random big-enough amount | |
| **ctx.accounts.new_account.try_borrow_mut_lamports()? += 2000000; | |
| // Allocate the new_account some space (it has money now). |
| { | |
| "Ansi 5 Color" : { | |
| "Green Component" : 0.4117647111415863, | |
| "Blue Component" : 0.78823530673980713, | |
| "Red Component" : 0.55686277151107788 | |
| }, | |
| "Working Directory" : "\/Users\/david", | |
| "Prompt Before Closing 2" : 0, | |
| "Selected Text Color" : { | |
| "Green Component" : 0.729411780834198, |
| # Instructions for installing GCC 4.9 on various platforms. | |
| # The commands show instructions for GCC 4.9, but any higher version will also work! | |
| # Ubuntu (https://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu/581497#581497) | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
| sudo apt-get update | |
| sudo apt-get install gcc-4.9 g++-4.9 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 |
| <div style="font-family: sans-serif;"> | |
| <? var data = valid(); ?> | |
| <form id="form" name="form"> | |
| <? if(Object.prototype.toString.call(data) === '[object Array]') { ?> | |
| <? for (var i = 0; i < data.length; i++) { ?> | |
| <? for (var j = 0; j < data[i].length; j++) { ?> | |
| <input type="checkbox" id="ch<?= '' + i + j ?>" name="ch<?= '' + i + j ?>" value="<?= data[i][j] ?>"><?= data[i][j] ?><br> | |
| <? } ?> | |
| <? } ?> | |
| <? } else { ?> |
| Byobu is a suite of enhancements to tmux, as a command line | |
| tool providing live system status, dynamic window management, | |
| and some convenient keybindings: | |
| F1 * Used by X11 * | |
| Shift-F1 Display this help | |
| F2 Create a new window | |
| Shift-F2 Create a horizontal split | |
| Ctrl-F2 Create a vertical split | |
| Ctrl-Shift-F2 Create a new session |