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
#region Using declarations | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Input; |
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
DoInBackground(. . . ) { | |
//Doing some work | |
if (isCancelled()) { | |
// we are cancelled, no need to do any work now | |
. . . | |
// Did we override implement onCancelled() or onCancelled(Object)? | |
} | |
for (CurrentWork : ListOfWorks) { | |
if (isCancelled()) { | |
// we are cancelled, no need to do any work now |
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
public class Main { | |
public static void main(String[] args) { | |
Integer a = new Integer(10); | |
Integer b = new Integer(10); | |
if (a.equals(b)) { | |
System.out.println("true"); | |
} else { | |
System.out.println("false"); | |
} | |
} |
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
public class Main { | |
public static void main(String[] args) { | |
Integer a = new Integer(10); | |
Integer b= new Integer(10); | |
if (a == b) { | |
System.out.println("true"); | |
} else { | |
System.out.println("false"); | |
} | |
} |
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
public class Main { | |
public static void main(String[] args) { | |
int a = 10; | |
int b = 10; | |
if (a == b) { | |
System.out.println("true"); | |
} else { | |
System.out.println("false"); | |
} | |
} |
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
public class Main { | |
public static void main(String[] args) { | |
int a = 10; | |
int b = 10; | |
if (a == b) { | |
System.out.println("true"); | |
} else { | |
System.out.println("false"); | |
} | |
} |
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 | |
# locations of various tools | |
CURL=curl | |
SERVER_ENDPOINT=https://rink.hockeyapp.net/api/2/ | |
# Put your HockeyApp APP_TOKEN here. Find it in your HockeyApp account settings. | |
APP_TOKEN="" |
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.letsdecode.problems.recursion; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class NQueeen { | |
int n; | |
boolean[][] a; | |
boolean truth[]; | |
List<List<String>> list = new ArrayList<>(); |
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.sjl.util; | |
import android.app.Activity; | |
import android.app.Application; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import android.util.Log; | |
import java.util.List; |
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 android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentActivity; | |
public class FragmentUtils { | |
/** | |
* @param frag | |
* The Fragment whose parent is to be found | |
* @param callbackInterface | |
* The interface class that the parent should implement | |
* @return The parent of frag that implements the callbackInterface or null |
NewerOlder