1️⃣
🐦🍐🌳
2️⃣
🐢🐦 🐢🐦
🐦🍐🌳
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore] | |
"RemoveWindowsStore"=dword:00000000 | |
// What is the console output of this code? | |
function switchFoo (foo) { | |
switch (foo) { | |
case 1: | |
foo = 5 | |
console.log(foo) | |
case 2: { | |
console.log(foo) | |
break |
1️⃣
🐦🍐🌳
2️⃣
🐢🐦 🐢🐦
🐦🍐🌳
git clean -fdx
(defn episode-number [file] | |
(def match (re-matches | |
#"\d{4}-\d{2}-\d{2} - (S\d\d E\d\d) - .*" | |
(.getName file))) | |
(if (= match nil) | |
nil | |
(match 1))) | |
(def episodes (partition-by episode-number files)) |
If you're using Browserify and Reactify to write React components and build them for the browser, you may, depending on your setup, see errors along the lines of "unexpected token <", which means that your code is not getting Reactified properly. You will either see this in Gulp, because some subsequent step in the pipeline can't parse your code, or in the browser.
Here's how browserify decides how to apply transforms:
You need to specify reactify
before anything else which is going to want to parse the code, because obvs. it isn't valid es5 until it's been reactified (so e.g. having `["browserify-shim", "reactify"
Open Conemu
Open Settings -> Tasks or go to new tab button -> Setup tasks.
Click +
to add a new task
Enter the name as Git Bash
or whatever you like
Task parameters:
/icon "C:\Program Files (x86)\Git\etc\git.ico" /dir "C:\_git"
Command:
gulp.task("install", function(cb) { | |
var npm = require("npm"); | |
npmConfig = {}; | |
// sample command line opts, you may have others | |
if (gUtil.env["npm-cache-path"]) npmConfig.cache = gUtil.env["npm-cache-path"]; | |
if (gUtil.env["npm-log-level"]) npmConfig.loglevel = gUtil.env["npm-log-level"]; | |
npm.load(npmConfig, function (er) { | |
if (er) return cb(er); | |
npm.commands.install([], function (er, data) { cb(er); }); |
/* | |
* requireTime.js | |
* | |
* require()s every thing in your node_modules and tells you how long each one | |
* took. | |
* | |
* USAGE: | |
* $ cd your_project_folder | |
* $ node loadTest.js | |
* |
@echo off | |
rem If Windows's idea of $HOME is wrong for you, you can use | |
rem Console2 and instead of using bash directly, use this batch | |
rem file instead. It will set $HOME to wherever it is located. | |
set PATH=%PATH%;%~dp0 | |
set HOME=%~dp0 | |
rem adjust path to suit |