As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
#!/usr/bin/sh | |
rm -rf "$HOME/Library/Preferences/WebIde40" | |
rm -rf "$HOME/Library/Caches/WebIde40" | |
rm -rf "$HOME/Library/Application Support/WebIde40" | |
rm -rf "$HOME/Library/Logs/WebIde40" |
function $(selector, context) { | |
return (context || document).querySelector(selector) | |
} | |
$.all = function (selector, context) { | |
return Array.prototype.slice.call( | |
(context || document).querySelectorAll(selector) | |
) | |
} |
ps aux | grep node | |
kill -9 PID | |
(Replace PID with the process Id of the Node) | |
This should be one of the core features of Git, but for some reason it's impossible to figure out how to search for a string in your commit history and see the diffs that that string is in. Here's the best I've come up with:
To find which commits and which files a string was added or removed in:
git log -S'search string' --oneline --name-status
To see the diff of that
let fs = { | |
readFile: function(filename, cb){ | |
setTimeout(()=>{ | |
cb('hello') | |
}, 100) | |
} | |
} | |
let readFilePro = function(filename){ | |
return new Promise(function(resolve, reject) { | |
fs.readFile(filename, (data, err) => { |
<div id="skills"> | |
<div id="part1" class="circle animate"></div> | |
<div id="part2" class="circle animate"></div> | |
<div id="part3" class="circle animate"></div> | |
<div id="part4" class="circle animate"></div> | |
<div id="part5" class="circle animate"></div> | |
<div id="part6" class="circle animate"></div> | |
</div> |
Here is a checklist of all the things I need my CSS solution to handle.
I can explain any of the points. Leave a comment on the gist or tweet @DavidWells
Challenge: Take your favorite CSS solution and see how the checklist holds up.
(defn class-names [& args] | |
(clojure.string/join " " | |
(mapv name | |
(reduce (fn [arr arg] | |
(cond | |
(or (string? arg) | |
(symbol? arg) | |
(keyword? arg)) (conj arr arg) | |
(vector? arg) (vec (concat arr arg)) | |
(map? arg) (vec (concat arr |
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next
, right?
+ webpack@4.0.0-beta.2