View MeshUtils.cs
using System;
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;
namespace Code.Utils
public class MeshUtils
View gist:10e703989ffecfa89a98
string spriteSheet = AssetDatabase.GetAssetPath( TileMapTexture );
Sprite[] sprites = AssetDatabase.LoadAllAssetsAtPath(spriteSheet).OfType<Sprite>().ToArray();
View gist:b3d7c9a8b3db9aa3ee9c
Shader "JM/Sprite Bumped Shadows" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
[PerRendererData] _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_BumpMap ("Normalmap", 2D) = "bump" {}
_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0
SubShader {
View OnConfirmCancelEditor
using System;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEditor;
[CustomEditor (typeof(OnConfirmCancel), true)]
public class OnConfirmCancelEditor : Editor
// Fields
View OnConfirmCancel
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class ConfirmCancelEntry
View gist:5826901


Certain conferences have adapted a "Code of Conduct", all derived from the same text. e.g. e.g.

While I agree with the intent, I strongly object to the particularly wording, for the following reasons:

  • The only thing it's concerned with is harassment, setting a very negative tone. It suggests that unless warned, monitored and policed, many conference attendees will intimidate, insult, grope and stalk each other. It presumes the worst and treats exceptions as the norm. This does not match the actual experience of attendees at events.
View Heroku + Apigee - Local development set up.rb
# How to set up your local development machine to use the Apigee Heroku addon
# Get this value from Heroku.
# Once you have enabled the addon, boot up the 'heroku console' and run the following:
# this will spit out your correct api endpoint
@@twitter_api = ""
View gist:415156
require 'tlsmail'
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.smtp_settings = {
:address => "",
:port => 587,
:domain => "",
:user_name => "",
:password => "password",
View gist:413670
def self.fetch_yams
config_path = File.join(RAILS_ROOT, 'config', 'yammer.yml')
yammer = => config_path)
# this is the ID of the main link hashtag (should be 402387)
link_tag_id = 0
tags = yammer.tags
tags.each do |tag|
if( == "link")
link_tag_id =
View JS scope
// cannot call this attach_actions function
var attach_actions = function(){
console.log("attached action");