Skip to content

Instantly share code, notes, and snippets.

View mightyfrog's full-sized avatar

Shigehiro Soejima mightyfrog

View GitHub Profile

CA.kt #7

『KotlinConf 2018 Keynote Overview』

藤原 聖

https://t.co/4KRU3VD1lT


『New Type Inference and Related Language Features(Kotlin1.3)』

Privacy Policy
built the Watchcat app as a Free app. This SERVICE is provided by at no cost and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Watchcat unless otherwise defined in this Privacy Policy.
@mightyfrog
mightyfrog / flutter_resources.txt
Created August 19, 2018 12:40
Flutter Resources
Flutter Resources
Documentation: https://docs.flutter.io/
Github: https://github.com/flutter/flutter
StackOverflow: https://stackoverflow.com/questions/tagged/flutter
Gitter: https://gitter.im/flutter/flutter
Effective Dart Guide: https://www.dartlang.org/guides/language/effective-dart
Dart Tips: https://www.dartlang.org/resources/dart-tips
Flutter FAQ: https://flutter.io/faq/
Flutter Rendering: https://www.youtube.com/watch?v=UUfXWzp0-DU
@mightyfrog
mightyfrog / SMBDIS.ASM
Created June 29, 2018 19:07 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
こんちには みさなん おんげき ですか? わしたは げんき です。
この ぶんょしう は いりぎす の ケブンッリジ だがいく の けゅきんう の けっか
にんんげ は もじ を にしんき する とき その さしいょ と さいご の もさじえ あいてっれば
じばんゅん は めくちちゃゃ でも ちんゃと よめる という けゅきんう に もづいとて
わざと もじの じんばゅん を いかれえて あまりす。
どでうす? ちんゃと よゃちめう でしょ?
ちんゃと よためら はのんう よしろく
@mightyfrog
mightyfrog / float_in_xml.md
Created April 15, 2015 14:42
Define float values in res/values
<resources>
    <item name="float1" format="float" type="dimen">1.0</item>
    <item name="float2" format="float" type="dimen">0.95</item>
</resources>
final TypedValue typedValue = new TypedValue();
getResources().getValue(R.dimen.flaot1, typedValue, true);
@mightyfrog
mightyfrog / OnSharedPreferenceChangeListener.md
Created April 8, 2015 13:31
OnSharedPreferenceChangeListener must be unregistered when it's used in PreferenceFragment
    @Override
    public void onDetach() {
        PreferenceManager.getDefaultSharedPreferences(getActivity())
                .unregisterOnSharedPreferenceChangeListener(this);

        super.onDetach();
    }
@mightyfrog
mightyfrog / popupmenucompat.md
Last active August 29, 2015 14:16
How to use PopupMenuCompat
ImageView menuBtn; // vertical three dots

final PopupMenu popup = new PopupMenu(context, menuBtn);
popup.getMenuInflater().inflate(R.menu.test, popup.getMenu());
menuBtn.setOnTouchListener(PopupMenuCompat.getDragToOpenListener(popup));
@mightyfrog
mightyfrog / winzipaes.md
Last active March 21, 2017 20:14
winzipaes sample code

###winzipaes

how to zip

final String path = "/data/data/package-name/databases/my.db";
final File dbFile = new File(path);
final File file = new File(backupRoot, "db.zip");
AesZipFileEncrypter ze = null;
try {
    final AESEncrypter aesEncrypter = new AESEncrypterBC();