Skip to content

Instantly share code, notes, and snippets.

View asarazan's full-sized avatar

Aaron Sarazan asarazan

View GitHub Profile
---- Minecraft Crash Report ----
// Why is it breaking :(
Time: 7/26/20, 6:38 PM
Description: Initializing game
java.lang.NullPointerException: Initializing game
at net.minecraft.client.renderer.color.ItemColors.func_199877_a(ItemColors.java:95) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at shadows.apotheosis.potion.PotionModuleClient.colors(PotionModuleClient.java:12) ~[?:3.2.4] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_1167_PotionModuleClient_colors_Item.invoke(.dynamic) ~[?:?] {}
using UnityEngine;
using UnityEngine.UI;
namespace Dev
{
[RequireComponent(typeof(Text))]
public class FpsLog : MonoBehaviour
{
float _deltaTime = 0.0f;
using UnityEngine;
using UnityEngine.UI;
namespace Dev
{
[RequireComponent(typeof(Text))]
public class FpsText : MonoBehaviour
{
public bool ColorCodeForTarget = true;
fun html(init: HTML.() -> Unit): HTML {
val html = HTML()
html.init()
return html
}
fun HTML.head(init: Head.() -> Unit) : Head {
val head = Head()
head.init()
children.add(head)
@asarazan
asarazan / Original.dart
Created June 3, 2017 18:19 — forked from sethladd/Original.dart
Comparing Flutter to what it might look like in Kotlin, Dart.soon, and Dart.wishlist
class TutorialHome extends StatelessWidget {
@override
Widget build(BuildContext context) {
// Scafold is a layout for the major material design widgets.
return new Scaffold(
appBar: new AppBar(
leading: new IconButton(
icon: new Icon(Icons.menu),
tooltip: 'Navigation menu',
onPressed: null,
@asarazan
asarazan / Original.dart
Last active June 4, 2018 11:46
Comparing Flutter to what it might look like in Kotlin
class TutorialHome extends StatelessWidget {
@override
Widget build(BuildContext context) {
// Scafold is a layout for the major material design widgets.
return new Scaffold(
appBar: new AppBar(
leading: new IconButton(
icon: new Icon(Icons.menu),
tooltip: 'Navigation menu',
onPressed: null,

Keybase proof

I hereby claim:

  • I am asarazan on github.
  • I am asarazan (https://keybase.io/asarazan) on keybase.
  • I have a public key whose fingerprint is 3A19 0AC7 721B BFF4 0DAC 2D34 E6E4 C9E8 3177 566E

To claim this, I am signing this object:

@asarazan
asarazan / CFURLCache stack trace
Created December 13, 2012 18:31
Crash received after QA testing https://gist.github.com/4265969
SIGSEGV
0
CFNetwork 0x36426f9a _ZN11HTTPMessage20ensureParserFinishedEv + 50 + 49
1
CFNetwork 0x364272cd _ZN11HTTPMessage19copyAllHeaderFieldsEPPK9__CFArray + 13 + 12
2
CFNetwork 0x36484973 _ZN11URLResponse17createArchiveListEPK13__CFAllocatorPlPPPKvS3_ + 143 + 142
3
CFNetwork 0x36484af3 _ZN11URLResponse16copyPropertyListEPK13__CFAllocator + 51 + 50
@asarazan
asarazan / NSCachedURLResponse+CueCore.m
Last active October 13, 2015 22:28
Proposed workaround for NSURLCachedResponse leak as described at https://github.com/steipete/SDURLCache/issues/7
#import "NSCachedURLResponse+MemoryLeakFix.h"
#import <objc/runtime.h>
/**
* In iOS 5 onward, there is a significant memory leak in NSCachedURLResponse.
* Discussion: https://github.com/steipete/SDURLCache/issues/7#issuecomment-5066300
*/
@implementation NSCachedURLResponse (MemoryLeakFix)