A pretty simple custom LSP hover window that tries to solve the issues I face with the built-in one.
Note
This was designed with small screen size in mind!
Since my Macbook Pro only has USB-C port, I used an USB-A to USB-C adapter to connect my F310 to it, but it does not work (pressing MODE button does not turn on the LED).
To make it work:
There are two 'types' to be aware of with a quickfix window:
:grep foo
will show a specific line that matched within a file).To replace content using vim (via the quickfix window) you need to choose whether you want to apply the change via the quickfix 'entry' or via the 'file' as a whole.
If you use cdo
, then your 'action' (i.e. how you're going to replace content) will be applied to every entry in the quickfix window.
If you use cfdo
, then your action will be applied to each file in the quickfix window.
import React from 'react'; | |
// Source: https://github.com/emotion-js/emotion/blob/master/packages/styled-base/types/helper.d.ts | |
type PropsOf< | |
// eslint-disable-next-line @typescript-eslint/no-explicit-any | |
E extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any> | |
> = JSX.LibraryManagedAttributes<E, React.ComponentPropsWithRef<E>>; | |
export interface BoxOwnProps<E extends React.ElementType = React.ElementType> { | |
as?: E; |
## Example 1: | |
export async function getStaticProps() { | |
const data = await axios | |
.get("https://api.priver.dev/wp-json/wp/v2/works?filter=[orderby]=date") | |
.then(d => d.data); | |
console.log(data); | |
return { props: { projects: data } }; | |
} | |
class Home extends React.Component { |
In the following steps replace:
subdomain
with your desired subdomain.domain.com
with your domain.random.herokudns.com
with your Heroku DNS target (see step 1).subdomain.domain.com
to receive the random.herokudns.com
Heroku DNS target.https://subdomain.domain.com
in a browser will fail with an SSL error.using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Linq; | |
public class CreatePivotFromSelection | |
{ | |
static void CreatePivot(Vector3 offset) | |
{ | |
if (Selection.gameObjects == null || Selection.gameObjects.Length <= 0) |
import React from "react"; | |
let lsBus = {}; | |
let ssBus = {}; | |
/** | |
* Redraw all components that have a hook to localStorage with the given key. | |
* @param {string} key | |
* @param {*} newValue | |
*/ |
// 4 spaces to 2 spaces | |
%s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g | |
// Tab to 2 spaces | |
:%s/\t/ /g |
var user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.20 (KHTML, like Gecko) Chrome/19.0.1036.7 Safari/535.20'; | |
var Browser = require("zombie"); | |
var browser = new Browser({userAgent: user_agent, debug: true, waitFor: 10000}); | |
var url = 'https://accounts.google.com/ServiceLoginAuth'; | |
var root_path = 'https://www.google.com/webmasters/tools/'; | |
var login = '[email protected]'; | |
var password = 'foo'; |