Skip to content

Instantly share code, notes, and snippets.

@MythicalC
MythicalC / CodeGenerator_Window.cs
Last active October 13, 2018 16:17 — forked from dogfuntom/CodeGenerator_Window.cs
[Unity CodeDom] Editor-time code generator. Generates constant-declaration-only classes for Tags, Layers, Sorting layers and Input axes. Good for type-safety. #Unity #Unity3d #CodeDom
using Microsoft.CSharp;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
@samizzo
samizzo / StandaloneInputModuleEx.cs
Last active June 13, 2018 12:04
A StandaloneInputModule that only shows the mouse cursor if the mouse is active.
using UnityEngine;
using UnityEngine.EventSystems;
/// <summary>
/// A StandaloneInputModule replacement that only shows the mouse cursor if the mouse is active.
/// If keyboard or controller input is detected, the cursor is disabled. If mouse input is
/// detected, the cursor is enabled.
///
/// This also has an optional setting to disable clearing the input focus when clicking on
/// an empty part of the screen.
@andytlr
andytlr / screenshots.sh
Last active August 29, 2015 14:01
Better OS X Screenshots
# This will capture a screenshot, put it in your Public Dropbox folder,
# reveal it in Finder and copy a sharable URL to the clipboard. E.g.
# https://dl.dropboxusercontent.com/u/21267/shots/shot_2014-05-19_12-30-48.png
# Uncomment options below for things like opening in Preview,
# copying a Markdown/HTML image tag etc.
# Replace with your Dropbox user ID.
#
# Share something from your Public folder to find it.
@warnergodfrey
warnergodfrey / gist:7512051
Last active September 21, 2018 03:20
Access the ATO Business Portal using AusKey Mac OS X Mountain Lion
  • Install the latest JRE from Oracle
  • In the Java Control Panel, go to the Security tab and make sure 'Enable Java Content' is checked
  • Open Safari
  • Go to the ATO Business portal site https://bp.ato.gov.au/BpStatics/homepage.htm
  • Click Login
  • A dialog will apear asking you 'Do you want to trust the website “authentication.business.gov.au” to use the “Java” plug-in?'
  • Click 'Trust'
  • Now you will be asked 'Do you want to run this application?'
  • Click 'Run'
  • Another dialog will appear asking you to 'Allow access to the following application from this website?'
@eternalstorms
eternalstorms / Apple Evangelists.txt
Created June 12, 2013 09:07
Apple Evangelists (WWDC 2013)
UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens
- What's new in Cocoa
- Accessibility in iOS
- Building User Interfaces for iOS 7
- Getting Started with UIKit Dynamics
- What's new in Cocoa Touch
- What's New With Multitasking
- Best Practices for Cocoa Animation
- Improving Power Efficiency with App Nap
- Introducing Text Kit
@lachie
lachie / blackmesa.sh
Created September 16, 2012 06:10
Run black mesa on mac
#!/bin/bash
#
# The Stanley Parable Launcher
#
# adapted by @mungler to use an embedded copy of the stanley parable game data
# adapted by @lachie to work with black mesa
# if this is not defined (default), the script will attempt to guess it
STEAMUSERID=""
# if your Steam application is somewhere other than /Applications, edit below.
@scottlowe
scottlowe / OpenSslAes.cs
Created November 30, 2011 23:38
OpenSSL AES CBC 256 in .NET for interop with Ruby
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace dotnet_aes
{
public class OpenSslAes
{