Skip to content

Instantly share code, notes, and snippets.

@FrozenFrog
FrozenFrog / c_sharp_for_python.md
Last active August 1, 2016 12:11 — forked from mrkline/c_sharp_for_python.md
An intro to C# for a Python developer.

C# For Python Programmers

Syntax and core concepts

Basic Syntax

  • Single-line comments are started with //. Multi-line comments are started with /* and ended with */.

  • C# uses braces ({ and }) instead of indentation to organize code into blocks. If a block is a single line, the braces can be omitted. For example,

@FrozenFrog
FrozenFrog / simulate_keypress.js
Created July 22, 2016 04:13 — forked from ejoubaud/simulate_keypress.js
Simulate keypress that works in Google nav in Chrome
// Based on http://stackoverflow.com/a/10520017/1307721 and http://stackoverflow.com/a/16022728/1307721
Podium = {};
Podium.keydown = function(k) {
var oEvent = document.createEvent('KeyboardEvent');
// Chromium Hack
Object.defineProperty(oEvent, 'keyCode', {
get : function() {