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 Foundation | |
enum CurrencyPosition { | |
case left | |
case right | |
case none | |
} | |
class Money { | |
// Properties |
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 Foundation | |
enum CurrencyPosition { | |
case left | |
case right | |
case none | |
} | |
class Money { | |
// Properties |
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
extension LinearGradient { | |
static func addLinearGradient( | |
colors: [Color] = [ | |
Color(UIColor.alphaVariant40.withAlphaComponent(0.2)), | |
Color(UIColor.alphaVariant39) | |
]) -> LinearGradient { | |
return LinearGradient( | |
gradient: Gradient(colors: colors), | |
startPoint: .bottomLeading, | |
endPoint: .topTrailing |
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
{ | |
"appList": [{ | |
"packageName": "com.paydustry.banking.nbademo.demo", | |
"transactionDetailsList": [{ | |
"amountNeeded": true, | |
"financialDirection": "POSITIVE", | |
"supported": true, | |
"transactionName": "Sale", | |
"transactionType": "CREDIT", | |
"transactionWorkflowName": "com.paydustry.core.workflow.Sale" |
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
{ | |
"counttotal": "152", | |
"channellist": [{ | |
"id": "89", | |
"foreignsn": "001309000000098698", | |
"type": "VIDEO_CHANNEL", | |
"name": "TV PLUS INFO", | |
"introduce": "TV PLUS INFO", | |
"mediaid": "9986", | |
"previewenable": "0", |
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.os.AsyncTask | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import com.burhan.studentattendance.R | |
import java.lang.ref.WeakReference | |
class MainActivity : AppCompatActivity() { | |
private var mJustAVariable = 0 |
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.os.AsyncTask | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import com.burhan.studentattendance.R | |
import java.lang.ref.WeakReference | |
class MainActivity : AppCompatActivity() { | |
private var mJustAVariable = 0 |
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
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); | |
fab.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View view) { | |
Intent intent = FingerPrintingActivity.newIntent(MainActivity.this); | |
startActivity(intent); | |
} | |
}); |
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 Singleton { | |
// Private constructor prevents instantiation from other classes | |
private Singleton() { } | |
/** | |
* SingletonHolder is loaded on the first execution of Singleton.getInstance() | |
* or the first access to SingletonHolder.INSTANCE, not before. | |
*/ | |
private static class SingletonHolder { | |
public static final Singleton INSTANCE = new Singleton(); |
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 javax.faces.bean.ManagedBean; | |
import nz.co.tradeintel.highcharts.ColumnChartSeries; | |
@ManagedBean | |
public class NZEthnicPopulation2006 { | |
private ColumnChartSeries nzEuropeanSeries = new ColumnChartSeries(); | |
private ColumnChartSeries maoriSeries = new ColumnChartSeries(); | |
private ColumnChartSeries pacificSeries = new ColumnChartSeries(); | |
private ColumnChartSeries asianSeries = new ColumnChartSeries(); | |