use git diff to generate file list
git diff --name-only master
add ext filter
git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"
$('*').on('focus blur', function(event) {console.log(event.type + " to:"); console.log(document.activeElement);}); |
If you have made these changes on your machine. (I'm assuming you have) | |
Run a build of the package that you changed. | |
run npm pack from that package's root folder. This creates a .tgz zip file of your package with your custom modifications. | |
copy that file into the root (you could put it wherever but root makes things easy) of your project. | |
in your package.json replace the version number ngx mask to the following "your-package": "file:my-packed-file.tgz" |
window.addEventListener('beforeunload', function(e) { | |
e.returnValue = 'Are you sure?'; | |
return e.returnValue; | |
}); |
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod |
Add this function to your Apps Script project and feed it an ID to a Google Doc.
If you need this on a lot of Docs, you may want to make a new Apps Script project to use as a library. Simply copy and paste this code to the new project, go to the script that's tied to your Doc, add your new Library (the script ID), and call var html = *NameOfYourLibraryProject*.getContent(DocumentApp.getActiveDocument().getId());
#!/bin/bash | |
set -ex | |
cd $1 | |
for f in `find . -type f -name '*.js'`; | |
do | |
git mv -- "$f" "${f%.js}.ts" | |
done |
(function(ready) { | |
if ( | |
document.readyState === "complete" || | |
document.readyState === "interactive" | |
) { | |
ready(); | |
} else { | |
document.addEventListener("readystatechange", function() { | |
if (document.readyState === "complete") { | |
ready(); |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
// https://leetcode.com/problems/letter-combinations-of-a-phone-number/ | |
// Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. | |
// A mapping of digit to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters. | |
// Example: | |
// Input: "23" | |
// Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]. | |
// Note: | |
// Although the above answer is in lexicographical order, your answer could be in any order you want. |