I hereby claim:
- I am ankushg on github.
- I am ankushg (https://keybase.io/ankushg) on keybase.
- I have a public key whose fingerprint is 8D1C 337B 650E 1842 6493 6F40 04B6 1D77 12C8 1B37
To claim this, I am signing this object:
| import Partial | |
| import Record | |
| import set | |
| import toPartial | |
| typealias JsMapLikeObject<K, V> = Partial<Record<K, V>> | |
| inline operator fun <K : Any, V : Any> JsMapLikeObject<K, V>.get(key: K): V? = | |
| asDynamic()[key] as? V |
| /** | |
| * Implementation of [SSLSocketFactory] that adds [TlsVersion.TLS_1_2] as an enabled protocol for every [SSLSocket] | |
| * created by [delegate]. | |
| * | |
| * [See this discussion for more details.](https://github.com/square/okhttp/issues/2372#issuecomment-244807676) | |
| * | |
| * @see SSLSocket | |
| * @see SSLSocketFactory | |
| */ | |
| class Tls12SocketFactory(private val delegate: SSLSocketFactory) : SSLSocketFactory() { |
| import com.ankushg.example.BuildConfig | |
| import com.ankushg.example.shadows.ShadowResourcesCompat | |
| import org.junit.runner.RunWith | |
| import org.robolectric.RobolectricTestRunner | |
| import org.robolectric.RuntimeEnvironment | |
| import org.robolectric.Shadows | |
| import org.robolectric.annotation.Config |
I hereby claim:
To claim this, I am signing this object:
| // ==UserScript== | |
| // Sources: http://stackoverflow.com/questions/2246901/how-can-i-use-jquery-in-greasemonkey-scripts-in-google-chrome | |
| // @name Mount Fader | |
| // @namespace habiticaMountFader | |
| // @include https://habitica.com/* | |
| // @author Tom Apicella (jquery by Erik Vergobbi Vold & Tyler G. Hicks-Wright) | |
| // @description This userscript fades out your mount when you mouse over your hero | |
| // ==/UserScript== | |
| // a function that loads jQuery and calls a callback function when jQuery has finished loading |
| import Foundation | |
| extension Array { | |
| func indexOfObject(object : AnyObject) -> NSInteger { | |
| return (self as NSArray).indexOfObject(object) | |
| } | |
| mutating func removeObject(object : AnyObject) { | |
| for var index = self.indexOfObject(object); index != NSNotFound; index = self.indexOfObject(object) { | |
| self.removeAtIndex(index) |
| protected void onCreate (Bundle savedInstanceState){ | |
| Calendar nextYear = Calendar.getInstance(); | |
| nextYear.add(Calendar.YEAR, 1); | |
| CalendarPickerView calendar = (CalendarPickerView) findViewById(R.id.calendar_view); | |
| Date today = new Date(); | |
| calendar.init(today, nextYear.getTime()) | |
| .withSelectedDate(today); | |
| } |
| <com.echo.holographlibrary.PieGraph | |
| android:layout_width="match_parent" | |
| android:layout_height="200dp" | |
| android:id="@+id/graph"/> |