(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// Boring | |
if (isThisAwesome) { | |
alert('yes'); // it's not | |
} | |
// Awesome | |
isThisAwesome && alert('yes'); | |
// Also cool for guarding your code | |
var aCoolFunction = undefined; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# Save branch history and revert easily | |
git merge --no-ff | |
git revert -m 1 <hash> | |
# Show n lines of context around diff lines instead of the usual +/- 3 | |
git diff -U<n> | |
# Check which branches are merged | |
git branch --merged |
#Run this to reverse ignoring of changes to web.config so it gets committed. | |
git update-index --no-assume-unchanged path_to_file/web.config |
#Run this to reverse ignoring of changes to web.config so it gets committed. | |
git update-index --no-assume-unchanged path_to_file/web.config |
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<httpProtocol> | |
<customHeaders> | |
<add name="Access-Control-Allow-Origin" value="*"/> | |
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS"/> | |
<add name="Access-Control-Allow-Headers" value="Content-Type"/> | |
</customHeaders> | |
</httpProtocol> |
/** | |
* Handle input events on the current slot. | |
* | |
* @param InputEvent @event The input event to handle | |
* | |
* @return void | |
*/ | |
public override void _GuiInput(InputEvent @event) | |
{ | |
// If right click, then equip item |