Skip to content

Instantly share code, notes, and snippets.

View punchdrunker's full-sized avatar
🍢
Eating something

takafumi nanao punchdrunker

🍢
Eating something
View GitHub Profile
@punchdrunker
punchdrunker / new_emojis_ios6.json
Created June 23, 2012 08:24
New emojis in iOS6
[{"name":"[勝ち誇り]", "unicode":"1F624", "utf8":"F09F98A4", "utf16":"FEFFD83DDE24"},
{"name":"[うれしい顔]", "unicode":"1F606", "utf8":"F09F9886", "utf16":"FEFFD83DDE6"},
{"name":"[うまい!]", "unicode":"1F60B", "utf8":"F09F988B", "utf16":"FEFFD83DDEB"},
{"name":"😎", "unicode":"1F60E", "utf8":"F09F988E", "utf16":"FEFFD83DDEE"},
{"name":"😴", "unicode":"1F634", "utf8":"F09F98B4", "utf16":"FEFFD83DDE34"},
{"name":"[ふらふら]", "unicode":"1F635", "utf8":"F09F98B5", "utf16":"FEFFD83DDE35"},
{"name":"😟", "unicode":"1F61F", "utf8":"F09F989F", "utf16":"FEFFD83DDE1F"},
{"name":"😦", "unicode":"1F626", "utf8":"F09F98A6", "utf16":"FEFFD83DDE26"},
{"name":"😧", "unicode":"1F627", "utf8":"F09F98A7", "utf16":"FEFFD83DDE27"},
{"name":"😈", "unicode":"1F608", "utf8":"F09F9888", "utf16":"FEFFD83DDE8"},
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.rssreader" >
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.example.rssreader"
minSdkVersion 15
targetSdkVersion 22
package com.example.rssreader;
import android.content.Context;
import android.util.Log;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Response;
import java.io.IOException;
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<cloud-backup>
<exclude domain="file" />
<exclude domain="database" />
 <exclude domain="sharedpref" />
 <exclude domain="external" />
 <exclude domain="root" />
  </cloud-backup>
  <device-transfer>
package tokyo.punchdrunker.playground
import com.google.gson.*
import org.junit.Assert
class GsonTester(val gson: Gson) {
/**
* json文字列をdeserialize後serializeし、余計なものが増えないか、必要な情報が欠落しないかの動作を確認する
*@paramjson元のjson
*@paramexpectedJsonDeserializeのみしか想定していないEntityクラス用に、ちょっといじったjsonでも比較できるように
package tokyo.punchdrunker.playground
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.*
import org.junit.Assert
class KSerializationTester(val kotlinxJson: Json) {
/**