Skip to content

Instantly share code, notes, and snippets.

🚀
Just passing by.

Sebastian Kaspari pocmo

🚀
Just passing by.
Block or report user

Report or block pocmo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View icons.js
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)
@pocmo
pocmo / SearchSuggestionProvider.kt
Last active Oct 25, 2018
SuggestionProvider implementations
View SearchSuggestionProvider.kt
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
View crash-log
GeckoViewModule D dispatch GeckoView:SetFocused, data={"focused":false}
GeckoViewContent D onEvent: event=GeckoView:SetFocused, data={"focused":false}
EGL_emulation D eglMakeCurrent: 0xefa0c100: ver 3 0
D eglMakeCurrent: 0xefa0c100: ver 3 0
GeckoViewModule D dispatch GeckoView:LoadUri, data={"uri":"about:crashcontent","flags":0}
GeckoViewNavigation D onEvent: event=GeckoView:LoadUri, data={"uri":"about:crashcontent","flags":0}
Web Content I Utils: Failed to deserialize principal_b64 '[xpconnect wrapped (nsISupports, nsIPrincipal, nsISerializable)]' [Exception... "Component retu
rned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsISerializationHelper.deserializeObject]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL
_VALUE)" location: "JS frame :: resource://gre/modules/sessionstore/Utils.jsm :: deserializePrincipal :: line 137" data: no]
IInputConnectionWrapper W r
View geckoview-nightly-build-error
Caused by: com.android.tools.r8.utils.AbortException
at com.android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.java:77)
at com.android.tools.r8.utils.Reporter.fatalError(Reporter.java:67)
at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:62)
... 10 more
Suppressed: com.android.tools.r8.ApiLevelException: Default interface methods are only supported starting with Android N (--min-api 24): com.google.android.exoplayer2.upstream.DataSource com.google.android.exoplayer2.upstream.HttpDataSource$Factory.createDataSource()
at com.android.tools.r8.dex.FileWriter.checkInterfaceMethod(FileWriter.java:247)
at com.android.tools.r8.dex.FileWriter.checkInterfaceMethods(FileWriter.java:213)
at com.android.tools.r8.dex.FileWriter.generate(FileWriter.java:140)
at com.android.tools.r8.dex.ApplicationWriter.writeDexFile(ApplicationWriter.java:356)
View FlatFileExperimentStorage.kt
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.service.fretboard.storage.flatfile
import android.util.AtomicFile
import mozilla.components.service.fretboard.ExperimentStorage
import mozilla.components.service.fretboard.ExperimentsSnapshot
import java.io.FileNotFoundException
View fretboard-update.md
  • service-fretboard: Experiments can now be filtered by release channel. Added helper method to get list of active experiments.
  • service-telemetry: Added option to report active experiments in the core ping.
@pocmo
pocmo / HSK1.md
Last active Jul 10, 2018
HSK-1 List - Traditional chinese
View HSK1.md
  • 的 de5 de indicates possession, like adding 's to a noun
  • 我 wo3 wǒ I; me
  • 你 ni3 nǐ you (singular)
  • 是 shi4 shì be; is; are; am
  • 了 le5 le indicates a completed or finished action
  • 不 bu4 bù no; not
  • 在 zai4 zài at; on; in; indicates an action in progress
  • 他 ta1 tā he; him
  • 我們 wo3men5 wǒmen we; us
  • 好 hao3 hǎo good
View Android components
Some ideas include:
* Search plugins: Focus re-used a lot of Fennec code here and this code + search plugins is something that is annoying to keep
updated and bug free over multiple code bases.
* Autocomplete domains: We want to update the list and it is duplicated over all our code bases. Including the code to load
and autocomplete from those lists.
* InlineAutocompleteEditText: Focus copied and modified the version from Fennec. When we started working on Focus I couldn't
View hgclean
alias hgclean='hg status | grep '\''^\?'\'' | sed '\''s/^\? //'\'' | xargs rm -rf'
You can’t perform that action at this time.