Skip to content

Instantly share code, notes, and snippets.

@heiswayi
heiswayi / .htaccess
Last active Oct 17, 2022 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
View .htaccess
# 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
@heiswayi
heiswayi / javascript-style-guide.md
Created Sep 23, 2015 — forked from fleishmanhillard/javascript-style-guide.md
JavaScript style guide with coding standards and best practices.
View javascript-style-guide.md

JavaScript (jQuery) Style Guide

All rules and guidelines in this document apply to jQuery files unless otherwise noted.

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:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts
@heiswayi
heiswayi / php-style-guide.md
Created Sep 23, 2015 — forked from ryansechrest/php-style-guide.md
PHP style guide with coding standards and best practices.
View php-style-guide.md

PHP Style Guide

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:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts
@heiswayi
heiswayi / css-style-guide.md
Created Sep 23, 2015 — forked from fleishmanhillard/css-style-guide.md
CSS style guide with coding standards and best practices.
View css-style-guide.md

CSS Style Guide

All rules and guidelines in this document apply to css/scss files unless otherwise noted.

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:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts
@heiswayi
heiswayi / html-style-guide.md
Created Sep 23, 2015 — forked from ryansechrest/html-style-guide.md
HTML style guide with coding standards and best practices.
View html-style-guide.md

HTML Style Guide

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

@heiswayi
heiswayi / privacy-policy.md
Last active Feb 11, 2021 — forked from maddisondesigns/cookie-policy.md
eCommerce Terms & Conditions and Privacy Templates
View privacy-policy.md

Privacy Policy

1. We respect your privacy

Business Name respects your right to privacy and this policy sets out how we collect and treat your personal information. “Personal information” is information we hold which is identifiable as being about you.

2. What personal information we collect

@heiswayi
heiswayi / gist:34d0de1ddfa72fb53e7e
Created Oct 14, 2015 — forked from jwoschitz/gist:1129249
Brute force implementation / C#
View gist:34d0de1ddfa72fb53e7e
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;
@heiswayi
heiswayi / FocusExtension.cs
Created Jun 5, 2016 — forked from chuckdee68/FocusExtension.cs
FocusExtension - Focusing Controls in View from ViewModel using MVVM principles
View FocusExtension.cs
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
{
@heiswayi
heiswayi / Bindable.cs
Created Jun 5, 2016 — forked from btshft/Bindable.cs
Bindable class to reduce boilerplate code in mvvm (implement INotifyPropertyChanged)
View Bindable.cs
namespace Helpers
{
///<summary>
/// Reduce mvvm boilerplate
///
/// Usage:
/// public class MyViewModel : Bindable {
/// // Now this property supports INotifyPropertyChanged
/// public string MyProperty
/// {
View Effective_Engineer.md

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets