Moved to https://api.fmhy.net
| async function getPriorityFees(instructions: TransactionInstruction[]): Promise<number> { | |
| // replace with real function | |
| return 426; | |
| } | |
| async function getSimulationUnits( | |
| connection: Connection, | |
| instructions: TransactionInstruction[], | |
| payer: PublicKey, | |
| lookupTables: AddressLookupTableAccount[] |
| // EDIT: It's now much easier to get metadata from metaplex using the js package. | |
| // Check the new gist here: https://gist.github.com/dvcrn/a1b0ff0a0b4b3ab02aff44bc84ac4522 | |
| // I didn't want to edit this gist because a lot of people found it helpful to see how to manually decode a account | |
| import * as web3 from "@solana/web3.js"; | |
| import * as metadata from "./metadata"; // see metadata.ts | |
| const tokenAddress = new web3.PublicKey( | |
| "CxkKDaBvtHqg8aHBVY8E4YYBsCfJkJVsTAEdTo5k4SEw" | |
| ); |
Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.
A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.
Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.
https://github.com/shyiko/jabba instead ?
| import React from 'react'; | |
| import { StyleSheet, Text, View } from 'react-native'; | |
| import { Util } from 'expo' | |
| export default class App extends React.Component { | |
| state = { | |
| updated: false, | |
| } | |
| componentWillMount() { | |
| Util.addNewVersionListenerExperimental(() => { |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
| There is no way to store an empty object/array/null value. | |
| There are also no actual arrays. Array values get stored as objects with integer keys. | |
| (If all keys are integers, it will be returned as an array.) | |
| Basically, it's one giant tree of hashes with string keys. | |
| Simply write a value to any location, and the intermediary locations will automatically come into existance. | |
| ── Classes ── | |
| DataSnapshot : Container for a subtree of data at a particular location. |
| var Types = new Map(); | |
| Types.set(Array, function(v) { | |
| var l = v.length; i = 0, a = Array(l); | |
| for (i; i<l; i++) { | |
| a[i] = v[i]; | |
| } | |
| return a; | |
| }); | |
| Types.set(Number, function(v) { | |
| return v * 1; |
This is a quick guide for installing memcached on a Mac with Homebrew, and starting and stopping it with Lunchy. I hope this tutorial will get your memcached up and running in no time.
Installing Homebrew is super easy. Just paste this in your terminal —
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"