Skip to content

Instantly share code, notes, and snippets.

View evan-boissonnot's full-sized avatar
🏠
Working from home

Evan BOISSONNOT evan-boissonnot

🏠
Working from home
View GitHub Profile
@evan-boissonnot
evan-boissonnot / Slot.cs
Created June 25, 2021 22:24
Godot - Drag and drop example in GDScript and C#
/**
* 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
@evan-boissonnot
evan-boissonnot / IIS_Verbs.config
Created February 19, 2021 10:37 — forked from Jalalhejazi/IIS_Verbs.config
CORS: Web.config to enable CORS
<?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>
@evan-boissonnot
evan-boissonnot / gist:311eaaf4db7af88f63c60fb3a68f38f4
Created July 29, 2020 16:03 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@evan-boissonnot
evan-boissonnot / commit-config.sh
Created July 28, 2020 08:30 — forked from tqheel/commit-config.sh
Prevent ASP.Net Web.Config From Being Committed By Git
#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
@evan-boissonnot
evan-boissonnot / commit-config.sh
Created July 28, 2020 08:30 — forked from tqheel/commit-config.sh
Prevent ASP.Net Web.Config From Being Committed By Git
#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
@evan-boissonnot
evan-boissonnot / git_commands.sh
Created July 27, 2020 12:21 — forked from olegafx/git_commands.sh
Useful git commands
# 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
@evan-boissonnot
evan-boissonnot / introrx.md
Created June 11, 2020 15:38 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@evan-boissonnot
evan-boissonnot / jshipster_and_and.js
Created December 3, 2019 23:33 — forked from berzniz/jshipster_and_and.js
Some small javascript hacks for hipsters
// Boring
if (isThisAwesome) {
alert('yes'); // it's not
}
// Awesome
isThisAwesome && alert('yes');
// Also cool for guarding your code
var aCoolFunction = undefined;