-
Use the
--recursive
flag:git clone https://github.com/aikiframework/json.git --recursive
However if you cannot, as Github desktop app on clone does not use this flag, then do this after clone:
var WIN32_ERROR_STR = { | |
HRESULT: { | |
'STG_S_CONVERTED': 0x00030200, | |
'STG_S_BLOCK': 0x00030201, | |
'STG_S_RETRYNOW': 0x00030202, | |
'STG_S_MONITORING': 0x00030203, | |
'STG_S_MULTIPLEOPENS': 0x00030204, | |
'STG_S_CONSOLIDATIONFAILED': 0x00030205, | |
'STG_S_CANNOTCONSOLIDATE': 0x00030206, | |
'OLE_S_USEREG': 0x00040000, |
function useRenderCounter(label) { | |
const ref = React.useRef(); | |
React.useEffect(() => { | |
ref.current.textContent = [ | |
parseInt(ref.current.textContent || "0", 10) + 1, | |
label | |
] | |
.filter(Boolean) | |
.join(" - "); | |
}); |
{ | |
"editor.inlineSuggest.enabled": true, | |
"github.copilot.enable": { | |
"*": false, | |
"plaintext": false, | |
"markdown": false, | |
"scminput": false, | |
"ts": true, | |
"js": true, | |
"jsx": true, |
const {interfaces: Ci, utils: Cu} = Components; | |
Cu.import('resource://gre/modules/Services.jsm'); | |
/*start - windowlistener*/ | |
var windowListener = { | |
//DO NOT EDIT HERE | |
onOpenWindow: function (aXULWindow) { | |
// Wait for the window to finish loading | |
let aDOMWindow = aXULWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowInternal || Ci.nsIDOMWindow); | |
aDOMWindow.addEventListener("load", function () { |
Add changed files to last commit - (first git add
the files you want to add to last commit, ie: git add .
) - git commit --amend --no-edit
List local branches and filter by word in it - git branch -l *foo*
(include -r
) to do for remote
Push up origin with remote name being local branch name - git push -u origin HEAD
(do this instead of git push -u origin NAME_OF_BRANCH_HERE
)
This is a script that adds a fully functional Fork button to your own Gist.
If a Fork button is already present in the page, this bookmarklet will set focus to it instead of adding another one.
The change is temporary and the button will disappear as soon as you navigate away from that Gist (clicking the Fork button does this for you as well). Meaning you will have to run the script every new page load.
Copy the contents from bookmarklet.js, open Scracthpad (Ctrl+F4), paste it there. Back in browser, swwitch to tab with your Gist you want to fork. Back in Scratchpad, "Run" it. Save and/or bookmark the Scratchpad file for future use.
// rev3 - https://gist.github.com/Noitidart/110c2f859db62398ae76069f4a6c5642 | |
/** | |
* Selects the closest matching locale from a list of locales. | |
* | |
* @param aLocales | |
* An array of available locales | |
* @param aMatchLocales | |
* An array of prefered locales, ordered by priority. Most wanted first. | |
* Locales have to be in lowercase. | |
* @return the best match for the currently selected locale |
import { useMemo, useRef } from 'react'; | |
import { useMemoizedFn } from 'ahooks'; | |
import { noop } from 'lodash'; | |
type UseRadioInputs = { | |
// Defaults to undefined | |
defaultValue?: any; | |
onChange?: (value: any) => void; |