This file has been truncated, but you can view the full file.
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
<html> | |
<head> | |
<title>JSF*ck Screen Saver</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
<script> | |
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[] |
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
@Override | |
public void onTaskEnd(PagedResult<List<Product>> result) { | |
if (result.isSuccess()) { // isSuccess guarantees result.data is not null | |
products.clear(); | |
products.addAll(result.data); // AS warns me that result.data might be null | |
adapter.notifyDataSetChanged(); | |
} | |
setRefreshing(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
class BaseActivity : AppCompatActivity { | |
void setTitleX(CharSequence title) { | |
ActionBar actionBar = getSupportActionBar(); | |
if (actionBar != null) { | |
actionBar.setTitle(title); | |
} | |
} | |
} | |
class ListActivity : BaseActivity { |
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 static IEnumerable<PositionData> ScalePolygon(IEnumerable<PositionData> points, double scaleFactor) | |
{ | |
var center = GetCentralGeoCoordinate(points.ToList()); | |
var normalizePoints = points.Select(p => new PositionData( | |
p.Latitude - center.Latitude, p.Longitude - center.Longitude)); | |
var scaledPoints = normalizePoints.Select(p => new PositionData( | |
p.Latitude * scaleFactor, p.Longitude * scaleFactor)); | |
return scaledPoints.Select(p => new PositionData(p.Latitude + center.Latitude, p.Longitude + center.Longitude)); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Simple Polygon</title> | |
<style> | |
/* Always set the map height explicitly to define the size of the div | |
* element that contains the map. */ | |
#map { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Simple Polygon</title> | |
<style> | |
/* Always set the map height explicitly to define the size of the div | |
* element that contains the map. */ | |
#map { |
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 static IEnumerable<PositionData> ScalePolygonByMeter(IEnumerable<PositionData> points, double meterScale) | |
{ | |
meterScale = MeterToDecimalDegree(meterScale); | |
var center = GetCentralGeoCoordinate(points.ToList()); | |
var normalizePoints = points.Select(p => new PositionData( | |
p.Latitude - center.Latitude, p.Longitude - center.Longitude)); | |
var scaledPoints = normalizePoints.Select(p => new PositionData( | |
p.Latitude + p.Latitude * meterScale, p.Longitude + p.Longitude * meterScale)); | |
return scaledPoints.Select(p => new PositionData(p.Latitude + center.Latitude, p.Longitude + center.Longitude)); | |
} |
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 ActionWithPriority | |
{ | |
public int Priority { get; set; } | |
public Action Action { get; set; } | |
} | |
var actions = new List<ActionWithPriority> | |
{ | |
MakeAction(() => Console.WriteLine("Hi"), 3), | |
MakeAction(() => Console.WriteLine("Hello"), 2), |
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 QuestionAndAnswers | |
{ | |
string _preliminaryQuestion; | |
public string PreliminaryQuestion { | |
get => Parameters != null ? string.Format(_preliminaryQuestion, Parameters) : _preliminaryQuestion; | |
set => _preliminaryQuestion = value; | |
} | |
string _repeatedQuestion; | |
public string RepeatedQuestion { |
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
var data = @" | |
Interrogation: { | |
Id: 0, | |
Question: 'How are you?', | |
PossibleAnswers: [ | |
{ | |
Text: 'I'm okay', | |
Polarity = Polarity.Positive, | |
Interrogation: { | |
{ |