rw.Header().Set("Content-Type", "application/json")
json.NewEncoder(rw).Encode(struct{
Status int json:"status"
}{ Status: http.StatusOk })
CPU uses registers to store data temporairly. Most AVRs have 8 bit registers. Two kinds of registers. The General Purpose Registers(GPRs) & I/O registers.
ARVs have 32 general purpose registers. They are R0 to R31. And located in the lowers location of memory address($0000 to $001F). They can be used by all arithmatic and logical instructions.
#!/usr/bin/env bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
(Firebase Hooks) [https://github.com/CSFrequency/react-firebase-hooks/tree/master/auth]
/** | |
* Mimic set state function of react | |
* @param prevState | |
* @param property | |
*/ | |
type TypedReducer<T> = ( | |
prevState: T, | |
property: { [K in keyof T]?: T[K] } | |
) => T; |