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
private Set<String> mSelectedContactNumbers = new HashSet<String>(); | |
@Override | |
public void bindView(View view, Context context, final Cursor cursor) | |
{ | |
final String contactNumber = cursor.getString(cursor.getColumnIndex("contact_number")); | |
view.setOnClickListener(new View.OnClickListener() | |
{ | |
@Override | |
public void onClick(View v) |
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 jp.cyberagent.android.base.ui.widget; | |
import java.util.ArrayList; | |
import java.util.List; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.ViewGroup; |
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
Class c = Class.forName("android.app.ActivityManagerNative"); | |
Method getDefaultMethod = c.getMethod("getDefault"); | |
getDefaultMethod.setAccessible(true); | |
Object nativeManager = getDefaultMethod.invoke(null); | |
c = nativeManager.getClass(); | |
Method forceStopPackageMethod = c.getMethod("forceStopPackage", String.class); | |
forceStopPackageMethod.setAccessible(true); | |
forceStopPackageMethod.invoke(nativeManager, pkgName); |
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
$loc->compileAll(); |
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
if (isPackageAvailable("ch.pboos.android.SleepTimerPayPal")) { | |
Intent intent = new Intent( | |
"ch.pboos.android.SleepTimerPayPal.CHECK"); | |
startActivityForResult(intent, CHECK_PAYMENT); | |
} |
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
import sbt._ | |
import de.element34.sbteclipsify._ | |
class LiftProject(info: ProjectInfo) extends DefaultWebProject(info) with Eclipsify { |
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
#!/usr/bin/env scala | |
!# | |
import java.io._ | |
import scala.runtime.RichChar | |
import scala.io.Source | |
import scala.util.matching.Regex | |
import scala.collection.immutable.Stream | |
// SETTINGS | |
val FILE_NAME_ON_SERVER = "1.war" | |
val SCP_SERVER_NAME = "ec2.my_server.ch" |
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
#!/bin/sh | |
# This script will perform a DynDNS-like function for Amazon's Route 53 | |
# | |
# Author: Johan Lindh <[email protected]> | |
# http://www.linkdata.se/ | |
# | |
# Script requirements: | |
# | |
# wget |
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 ch.pboos.android.sample.viewpager; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentActivity; | |
import android.support.v4.app.FragmentPagerAdapter; | |
import android.support.v4.view.ViewPager; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
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
<uses-library android:name="ch.pboos.scala-library-2.10.0"/> | |
<uses-library android:name="ch.pboos.scala-actors-2.10.0"/> | |
<uses-library android:name="ch.pboos.scala-collection-2.10.0"/> | |
<uses-library android:name="ch.pboos.scala-immutable-2.10.0"/> | |
<uses-library android:name="ch.pboos.scala-mutable-2.10.0"/> |
OlderNewer