Skip to content

Instantly share code, notes, and snippets.

View njovy's full-sized avatar

Taehyun Park njovy

  • Lychee Corp.
  • Seoul, Korea
View GitHub Profile
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.graphics.Shader;
// enables hardware accelerated rounded corners
// original idea here : http://www.curious-creature.org/2012/12/11/android-recipe-1-image-with-rounded-corners/
@njovy
njovy / introrx.md
Last active August 29, 2015 14:23 — forked from staltz/introrx.md

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

@njovy
njovy / threaddump.txt
Created July 1, 2015 08:39
Threaddump
2015-07-01 17:35:47
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode):
"Attach Listener" #91 daemon prio=9 os_prio=31 tid=0x00007f88a34e4800 nid=0x700b waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Timer-0" #89 daemon prio=5 os_prio=31 tid=0x00007f88a3b6f000 nid=0xaf03 in Object.wait() [0x000000012b5fd000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:502)
@njovy
njovy / FFMpeg - FLAC to Ogg
Last active August 29, 2015 14:27 — forked from liamcurry/FFMpeg - FLAC to Ogg
Converting FLAC to various formats
ffmpeg -i hlah_3.flac -strict experimental -acodec vorbis -aq 100 hlah.ogg
@njovy
njovy / MainActivity.java
Created June 28, 2012 08:04 — forked from romannurik/SwipeDismissListViewTouchListener.java
**BETA** Android 4.0-style "Swipe to Dismiss" sample code
// THIS IS A BETA! I DON'T RECOMMEND USING IT IN PRODUCTION CODE JUST YET
/*
* Copyright 2012 Roman Nurik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
This file has been truncated, but you can view the full file.
hikari.2016-09-26.log:2016-09-26 21:01:28,234 [DEBUG] Thread-5 db-pool - Before closing stats (total=16, active=0, idle=16, waiting=0)
hikari.2016-09-26.log:2016-09-26 21:01:28,235 [DEBUG] db-pool connection closer db-pool - Closing connection com.mysql.jdbc.JDBC4Connection@24f123cd: (connection evicted)
hikari.2016-09-26.log:2016-09-26 21:01:28,236 [DEBUG] db-pool connection closer db-pool - Closing connection com.mysql.jdbc.JDBC4Connection@13ac080: (connection evicted)
hikari.2016-09-26.log:2016-09-26 21:01:28,236 [DEBUG] db-pool connection closer db-pool - Closing connection com.mysql.jdbc.JDBC4Connection@171a8d8c: (connection evicted)
hikari.2016-09-26.log:2016-09-26 21:01:28,236 [DEBUG] db-pool connection closer db-pool - Closing connection com.mysql.jdbc.JDBC4Connection@c41105c: (connection evicted)
hikari.2016-09-26.log:2016-09-26 21:01:28,237 [DEBUG] db-pool connection closer db-pool - Closing connection com.mysql.jdbc.JDBC4Connection@307e8599: (connection evicted)
hikari.2016-09-26.log:2016-09-26 21:
@njovy
njovy / Activate Office 2019 for macOS VoL.md
Created May 17, 2020 17:15 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@njovy
njovy / MainActivity.java
Created January 21, 2016 06:21
realm findFirstAsync
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import com.oldroid.examples.realm.models.Conversation;
import io.realm.Realm;
import rx.subscriptions.CompositeSubscription;
public class MainActivity extends AppCompatActivity {
private static final String TAG = MainActivity.class.getSimpleName();
[ +9 ms] executing: [/Users/captainpark/Library/Flutter/sdk/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +34 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 8fe7655ed20ffd1395f68e30539a847a01a30351
[ ] executing: [/Users/captainpark/Library/Flutter/sdk/] git tag --contains HEAD
[ +153 ms] Exit code 0 from: git tag --contains HEAD
[ +2 ms] 1.19.0-4.3.pre
[ +8 ms] executing: [/Users/captainpark/Library/Flutter/sdk/] git rev-parse --abbrev-ref --symbolic @{u}
[ +13 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
This file has been truncated, but you can view the full file.
Message from debugger: Terminated due to signal 9
2020-07-07 15:28:33.090596+0900 Runner[258:8662] Metal API Validation Enabled
2020-07-07 15:28:33.133502+0900 Runner[258:8662] libMobileGestalt MobileGestaltSupport.m:153: pid 258 (Runner) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled
2020-07-07 15:28:33.133608+0900 Runner[258:8662] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>)
2020-07-07 15:28:33.471149+0900 Runner[258:8662] [Crashlytics] Version 3.14.0 (144)
2020-07-07 15:28:33.572838+0900 Runner[258:8739] 6.21.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure