Skip to content

Instantly share code, notes, and snippets.

Roope Kangas muhmi

Block or report user

Report or block muhmi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@muhmi
muhmi / ssh.config
Created Mar 27, 2015
Route SSH connections through a bastion host
View ssh.config
Host bastion_ip
User ec2-user
HostName ##.##.##.##
ProxyCommand none
IdentityFile ~/.ssh/bastion_key.pem
BatchMode yes
PasswordAuthentication no
Host *
ServerAliveInterval 60
@muhmi
muhmi / date_util.erl
Last active Sep 13, 2015 — forked from zaphar/date_util.erl
set of utility functions that wrap the calendar module and erlangs now() date() and time() functions
View date_util.erl
-module(date_util).
-compile(export_all).
epoch() ->
now_to_seconds(now())
.
epoch_hires() ->
now_to_seconds_hires(now())
.
View gist:fde4797affe8572b84ba
defmodule Transport do
def connect(params) do
hostname = params.hostname
port = params.port
path = params.path
timeout = params.connection_timeout
{:ok, conn} = :gun.open(hostname, port)
{:ok, :http} = :gun.await_up(conn)
:gun.ws_upgrade(conn, path)
View Unity-hotswapping-notes.md

Unity hotswapping notes

Unity has built-in support for hotswapping, which is a huge productivity booster. This feature works not only with graphics assets like bitmaps and meshes, but also with code: if you edit the source and save it, the editor will save the state of the running game, compile and load the new code, then load the saved state and continue where it left off. Unfortunately, this feature is very easy to break, and most available 3rd party plugins have little regard for it.

It looks like there’s a lot of confusion about hotswapping in Unity, and many developers are not even aware of its existence – which is no wonder if their only experience is seeing lots of errors on the console when they forget to stop the game before recompiling... This document is an attempt to clear up some of this confusion.

Nota bene, I’m not a Unity developer, so everything below is based on blog posts and experimentation. Corrections are most welcome!

The basic flow of hotswapping

View ddb example
var params = {
Key: { cognitoId:{ S: cognitoId } },
TableName: "people",
UpdateExpression: "SET #attrName =:attrValue",
ExpressionAttributeNames : {
"#attrName" : "cheater"
},
ExpressionAttributeValues : {
":attrValue" : {
"S" : "TRUE"
View Has weird right-to-left characters.txt
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
You can’t perform that action at this time.