This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2012 Sebastian Kaspari | |
* | |
* 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 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentManager; | |
import android.support.v4.app.FragmentPagerAdapter; | |
import android.util.SparseIntArray; | |
import android.view.ViewGroup; | |
import android.provider.BaseColumns; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface StateWithTopSites : State { | |
val topsites: List<TopSite> | |
} | |
interface TopSite { | |
// .. | |
} | |
interface AddTopSiteAction { | |
val topSite: TopSite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A Brainfuck interpreter (and never completed compiler) | |
written in C++ to play with the idea of optimization: | |
https://github.com/pocmo/Brainfuck.CPP | |
Using the Kotlin grammar docs to write a compiler for | |
a subset. Never completed parsing the whole AST though. :) | |
https://github.com/pocmo/tinyK | |
"Translator" for parsing Android View XML and translating | |
it to Jetpack Compose code: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| | | +--- androidx.lifecycle:lifecycle-runtime:2.0.0 | |
| | | | +--- androidx.lifecycle:lifecycle-common:2.0.0 | |
| | | | | +--- androidx.lifecycle:lifecycle-livedata:2.0.0 | |
| | | | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0 | |
| | | | | | | +--- androidx.lifecycle:lifecycle-common:2.0.0 (*) | |
| | | | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 | |
| | | \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 (*) | |
| | | | +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.3.1 | |
| | | | | +--- androidx.lifecycle:lifecycle-common:2.3.1 | |
| | | | +--- androidx.lifecycle:lifecycle-runtime:2.3.1 (*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tested with gradle 1.7 and android plugin 0.5.6 | |
// [..] Your gradle build script | |
// Copy *.so files from libs/ folder of your project to native-libs folder | |
// Adjust if your native libraries are somewhere else.. | |
task copyNativeLibs(type: Copy) { | |
from(new File(project(':yourproject').projectDir, 'libs')) { include '**/*.so' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(android.permission-group.CONTACTS) android.permission.READ_CONTACTS dangerous | |
(android.permission-group.CONTACTS) android.permission.WRITE_CONTACTS dangerous | |
(android.permission-group.CONTACTS) android.permission.READ_PROFILE dangerous | |
(android.permission-group.CONTACTS) android.permission.WRITE_PROFILE dangerous | |
(android.permission-group.CALENDAR) android.permission.READ_CALENDAR dangerous | |
(android.permission-group.CALENDAR) android.permission.WRITE_CALENDAR dangerous | |
(android.permission-group.SMS) android.permission.SEND_SMS dangerous | |
(android.permission-group.SMS) android.permission.RECEIVE_SMS dangerous | |
(android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(android.permission-group.CONTACTS) android.permission.READ_CONTACTS dangerous | |
(android.permission-group.CONTACTS) android.permission.WRITE_CONTACTS dangerous | |
(android.permission-group.CONTACTS) android.permission.READ_PROFILE dangerous | |
(android.permission-group.CONTACTS) android.permission.WRITE_PROFILE dangerous | |
(android.permission-group.CALENDAR) android.permission.READ_CALENDAR dangerous | |
(android.permission-group.CALENDAR) android.permission.WRITE_CALENDAR dangerous | |
(android.permission-group.SMS) android.permission.SEND_SMS dangerous | |
(android.permission-group.SMS) android.permission.RECEIVE_SMS dangerous | |
(android.permission-group.SMS) android.permission.READ_SMS dangerous | |
(android.permission-group.SMS) android.permission.RECEIVE_WAP_PUSH dangerous |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("-----------------------------"); | |
document.querySelectorAll('link[rel="icon"]').forEach( | |
function(currentValue, currentIndex, listObj) { | |
console.log("ICON (" + currentValue.sizes + "): " + currentValue.href) | |
}) | |
document.querySelectorAll('link[rel="shortcut icon"]').forEach( | |
function(currentValue, currentIndex, listObj) { | |
console.log("SHORTCUT ICON (" + currentValue.sizes + "): " + currentValue.href) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mozilla.components.feature.awesomebar.provider | |
import kotlinx.coroutines.experimental.async | |
import kotlinx.coroutines.experimental.runBlocking | |
import mozilla.components.browser.search.SearchEngine | |
import mozilla.components.browser.search.suggestions.SearchSuggestionClient | |
import mozilla.components.concept.awesomebar.AwesomeBar | |
import mozilla.components.feature.search.SearchUseCases | |
import java.io.IOException | |
import java.net.HttpURLConnection |
NewerOlder