Skip to content

Instantly share code, notes, and snippets.


Pedro Paulo Amorim ppamorim

Block or report user

Report or block ppamorim

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 tpro
+--- io.realm:realm-android-library:5.0.0
| +---
| +--- com.getkeepsafe.relinker:relinker:1.2.2
| \--- io.realm:realm-annotations:5.0.0
+--- io.realm:realm-android-kotlin-extensions:5.0.0
| \--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.10
| \--- org.jetbrains.kotlin:kotlin-stdlib:1.2.10 -> 1.2.31
| \--- org.jetbrains:annotations:13.0
+--- io.realm:realm-annotations:5.0.0
View RepositoryTest.kt
* Just create a new project, add Realm dependency, enable minify (and add the Realm's proguard info) and run the test.
class RepositoryTest {
lateinit var realm: Realm
private fun cleanDatabase(realm: Realm) {
realm.executeTransaction {
View TestRepositoryTest.kt
import android.content.Context
import io.realm.*
import io.realm.internal.RealmCore
import io.realm.log.RealmLog
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mockito.`when`
import org.mockito.Matchers.`any`
View bizonho.erro
Error:Error converting bytecode to dex:
Cause: local 0008: invalid local 0008: invalid
Error: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Error: at sun.reflect.NativeConstructorAccessorImpl.newInstance(
Error: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
Error: at java.lang.reflect.Constructor.newInstance(
Error: at java.util.concurrent.ForkJoinTask.getThrowableException(
Error: at java.util.concurrent.ForkJoinTask.reportException(
Error: at java.util.concurrent.ForkJoinTask.join(
View AWSTask.swift
import UIKit
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
View Sample.kt
val audioRecordAdapter = ItemAdapter(data)
val sections = mutableListOf<Section>()
sections.add(DateSection(0, "Today"))
sections.add(DateSection(2, "15/05/2016"))
val customSectionAdapter = CustomSectionAdapter()
val sectionAdapter = SectionedRecyclerViewAdapter(customSectionAdapter, audioRecordAdapter)
View TableViewMultiView.swift
import PureLayout
class TableViewMultiView : UIView {
var didLoadView = false
let tableView : UITableView = {
let tableView = UITableView.newAutoLayoutView()
tableView.keyboardDismissMode = .OnDrag
tableView.separatorInset.right = tableView.separatorInset.left
ppamorim /
Created Feb 1, 2016
Code for satan
import os
import sys
import csv
import datetime
import time
import twitter
def test():
View sample_json.json
"user": {
"content":"Look that sunny day! Amazing!",
View FacebookAuth.swift
import Foundation
import FBSDKCoreKit
import FBSDKLoginKit
class FacebookAuth {
class func auth(callback: (Bool) -> (), viewController: UIViewController) {
let parameters = ["fields" : "id,name,email"]
let facebookReadPermissions = ["public_profile", "email", "user_friends"]
You can’t perform that action at this time.