Skip to content

Instantly share code, notes, and snippets.

View julenka's full-sized avatar

Julia Schwarz julenka

View GitHub Profile
@julenka
julenka / FlyCamera.cs
Last active March 29, 2020 23:29 — forked from RyanBreaker/FlyCamera.cs
Unity Script to give camera WASD + mouse control when right mouse clicked
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour
{
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Reformatted and cleaned by Ryan Breaker 23-6-18
Added Q/E keys to move up/down and only move mouse when right button clicked by Julia Schwarz 29-3-20
@julenka
julenka / FlyCamera.cs
Created March 29, 2020 23:05 — forked from gunderson/FlyCamera.cs
Unity Script to give camera WASD + mouse control
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour {
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
@julenka
julenka / SerializeDeserialize.java
Last active August 29, 2015 14:01 — forked from aprock/gist:2037883
Serialize and Deserialize Bundles
private String serializeBundle(final Bundle bundle) {
String base64 = null;
final Parcel parcel = Parcel.obtain();
try {
parcel.writeBundle(bundle);
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
final GZIPOutputStream zos = new GZIPOutputStream(new BufferedOutputStream(bos));
zos.write(parcel.marshall());
zos.close();
base64 = Base64.encodeToString(bos.toByteArray(), 0);
@julenka
julenka / send_intent.sh
Created May 23, 2014 17:50 — forked from ytkhs/send_intent.sh
send intent script in shell
$ adb shell
#sample
am start -a android.intent.action.CALL -d tel://000-0000
am start -a android.intent.action.SEND -d "some message" -t text/plain
am start -a android.intent.action.VIEW -d geo:0,0?q=Tokyo
am start -n com.android.browser/.BrowserActivity