🏴☠️
This file contains hidden or 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 in.xmlparser; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import org.xmlpull.v1.XmlPullParser; | |
import org.xmlpull.v1.XmlPullParserException; |
This file contains hidden or 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
/** | |
* | |
* @author Rachit Mishra | |
* @licence The MIT License (MIT) Copyright (c) <2013> <Rachit Mishra> | |
* | |
*/ | |
import android.app.IntentService; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; |
This file contains hidden or 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
apply plugin: 'kotlin-kapt' | |
compile "com.google.dagger:dagger:2.12" | |
kapt "com.google.dagger:dagger-compiler:2.12" |
This file contains hidden or 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
apply plugin: 'kotlin-kapt' | |
dependencies { | |
compile 'com.google.dagger:dagger:2.12' | |
kapt 'com.google.dagger:dagger-compiler:2.12' | |
compile 'com.google.dagger:dagger-android:2.12' | |
kapt 'com.google.dagger:dagger-android-processor:2.12' | |
compile 'com.google.dagger:dagger-android-support:2.12' | |
} |
This file contains hidden or 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 di | |
import dagger.Module | |
import dagger.Provides | |
import di.dependencies.* | |
@Module | |
abstract class ComputerModule(private val memorySize: Int, | |
private val vMemorySize: Int) { | |
This file contains hidden or 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
from xml.dom.minidom import parse, parseString | |
from sys import argv | |
import os | |
def fix_path(pathdata, token): | |
# Fix missing 0 after space | |
points = pathdata.split(token) | |
for i, b in enumerate(points): | |
if b.startswith('.'): | |
points[i] = '0' + b |
This file contains hidden or 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
// Declaring our component | |
@Component(modules = arrayOf(ComputerModule::class)) | |
interface ComputerComponent { | |
// provision function | |
fun getComputer(): Computer | |
} |
This file contains hidden or 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
/** | |
* Declaring a custom qualifier | |
*/ | |
@Qualifier // Required to specify the annotation as a qualifier | |
@Documented | |
@Retention(RUNTIME) | |
public @interface MyCustomQualifier { | |
String value() default ""; | |
} |
This file contains hidden or 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
/** | |
* Declaring a sub component | |
*/ | |
@SubComponent(modules = arrayOf(ComputerModule::class)) | |
@MyCustomScope | |
interface MySubComponent {} |
This file contains hidden or 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
/** | |
* Declaring a module with a sub component | |
*/ | |
@Module(subcomponents = arrayOf(MySubComponent::class)) | |
class SomeModuleForParentComponent{} |
OlderNewer