Skip to content

Instantly share code, notes, and snippets.

#import <Foundation/Foundation.h>
@interface NSDictionary (QueryStringBuilder)
- (NSString *)queryString;
@end
@uzzu
uzzu / RsaKeyDecoder.cs
Last active August 27, 2018 00:27
RSA公開鍵(.pem)をxml stringに変換するEditorScript
using System;
using System.Collections;
using System.IO;
using System.Text;
using System.Security.Cryptography;
using UnityEngine;
using UnityEditor;
public static class RsaKeyDecoder
{
@uzzu
uzzu / Enumeration.cs
Created December 22, 2014 15:26
Enumeration.cs
using System;
using System.Collections.Generic;
using System.Reflection;
public abstract class Enumeration : IComparable
{
#region Properties
public int Value { get { return value; } }
@uzzu
uzzu / 00_Case.cs.md
Last active August 29, 2015 14:11
C#でパターンマッチング
@uzzu
uzzu / SyncVsOnlyCSharp.cs
Last active August 29, 2015 14:14
*-csharp.slnなソリューションを開くUnityEditor拡張
using System;
using System.Reflection;
using System.Linq;
using UnityEditor;
public static class SyncVsOnlyCSharp
{
[MenuItem("Assets/Sync MonoDevelop Project (CSharp-Only)")]
public static void SyncMonoDevelopProject()
{

4.6.7p1

  • (705724) - iOS/IL2CPP: Allow Type.GetType(string) to return a proper value on 32-bit ARMv7 builds.
  • (696745) - iOS/IL2CPP: Generate correct C++ code for the IL add opcode with pointers in unsafe C# code.
  • (702203) - iOS/IL2CPP: Prevent a C++ compiler error in generated code which happens when a pointer is assigned a value which is a uintptr_t in converted unsafe C# code.
  • (693259) - iOS/IL2CPP: Prevent AES encryption types from being incorrectly stripped when they are used.
  • (695319) - iOS/IL2CPP: Prevent an intermittent crash on ARM64 when an live object is incorrectly reclaimed but the garbage collector.
  • (705860) - iOS/IL2CPP: The Preserve attribute can now be used in the managed code for an assembly to preserve all of the code in an assembly.
  • (705860) - iOS/IL2CPP: The preserve attribute can now be used with the assembly element in a link.xml file to preserve all of the code in an assembly.

4.6.6p4

@uzzu
uzzu / 01_WeakReferenceTest_Fail.cs
Last active March 23, 2016 10:10
なるほど納得WeakReference (韻を踏んでいくstyle)
using System;
using System.Runtime.InteropServices;
using NUnit.Framework;
namespace MonoSandboxTest
{
[TestFixture]
public class WeakReferenceTest
{
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.squareup.dagger:dagger:1.2.2'
provided 'com.squareup.dagger:dagger-compiler:1.2.2'
testCompile 'com.squareup.assertj:assertj-android:1.1.0'
testCompile 'org.robolectric:robolectric:3.0'
testCompile('org.robolectric:shadows-support-v4:3.0') {
exclude module: 'support-v4'
}
@uzzu
uzzu / scrape-sp-gaba.js
Created May 1, 2018 05:12
remove instructors, memos, and reviews from lesson history
const photos = document.querySelectorAll('#contents > section:nth-child(6) > div > div > div.instructorPhoto > a > img');
photos.forEach(function(e) { e.parentElement.removeChild(e); });
const memos = document.querySelectorAll('#contents > section:nth-child(6) > div > div > div.lessonDetail > p.memo');
memos.forEach(function(e) { e.parentElement.removeChild(e); });
const reviews = document.querySelectorAll('#contents > section:nth-child(6) > div > div > div.lessonDetail > p:nth-child(2)');
reviews.forEach(function(e) { e.parentElement.removeChild(e); });
const instructors = $x('//*[@id="contents"]/section[5]/div/div/div[2]/p/text()[3]');
$ ./gradlew ktlintCheck --no-daemon
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.6/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Task :samples:android-app:ktlintDebugAndroidTestCheck
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
> Task :samples:android-app:ktlintDebugCheck
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8