- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
class Program | |
{ | |
#region Private variables | |
// the secret password which we will try to find via brute force | |
private static string password = "p123"; | |
private static string result; | |
private static bool isMatched = false; | |
namespace Helpers | |
{ | |
///<summary> | |
/// Reduce mvvm boilerplate | |
/// | |
/// Usage: | |
/// public class MyViewModel : Bindable { | |
/// // Now this property supports INotifyPropertyChanged | |
/// public string MyProperty | |
/// { |
All rules and guidelines in this document apply to HTML files.
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Icon Legend:
·
Space, ⇥
Tab, ↵
Enter/Return
public static IEnumerable<Tuple<double, double>> LargestTriangleThreeBuckets(List<Tuple<double, double>> data, int threshold) | |
{ | |
int dataLength = data.Count; | |
if (threshold >= dataLength || threshold == 0) | |
return data; // Nothing to do | |
List<Tuple<double, double>> sampled = new List<Tuple<double, double>>(threshold); | |
// Bucket size. Leave room for start and end data points | |
double every = (double)(dataLength - 2) / (threshold - 2); |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Input; | |
namespace Supporting | |
{ |
All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.
The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Most sections are broken up into two parts:
# 301 Redirects for .htaccess | |
# =========================== | |
# Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
# Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
# Redirect an entire site to a subfolder |