Skip to content

Instantly share code, notes, and snippets.

View rroman81's full-sized avatar

Roman Rozinov rroman81

View GitHub Profile
@ryansechrest
ryansechrest / php-style-guide.md
Last active July 12, 2024 23:44
PHP style guide with coding standards and best practices.

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
@kevinSuttle
kevinSuttle / touch-icons.html
Last active December 18, 2022 17:15
Touch icon link syntax
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png">
<!-- For the iPad mini and the first- and second-generation iPad on iOS ≤ 6: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png">
<!-- For the iPad mini and the first- and second-generation iPad on iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="apple-touch-icon-76x76-precomposed.png">
<!-- For iPhone with high-resolution Retina display running iOS ≤ 6: -->
@rid00z
rid00z / AndroidResourcesPolyFill.cs
Created May 16, 2016 03:00
This is a Android Resources Polyfill for Xamarin.Forms 2.2 when 3rd party libraries have not' updated.
using System;
namespace Yournamespace
{
public partial class Resource
{
public partial class Attribute
{
// public const int mediaRoutePlayDrawable = -1;
public const int mediaRouteSettingsDrawable = -2;
@lopezm1
lopezm1 / brew-install-mac-dev-environment.sh
Last active June 11, 2020 05:30
Brew Install My Dev Environment for macOS High Sierra - Slack, Docker, iTerm, IntelliJ, Google, SourceTree, Spotify, etc.
#!/bin/bash
APP_FOLDER_LOCATION=/Applications
IFS=""
## Install applications via brew cask
brew_install() {
execute="$(brew cask install $1 2>&1)"
case $execute in
*Warning*|*Error*) echo "Warning while installing $1: $execute" ;;
*successfully*) echo "$execute \n Installed $1." ;;
@jldeen
jldeen / build19-superhero.md
Last active May 21, 2020 23:08
Build19 From Zero to DevOps Superhero