Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block maxviewup

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
maxviewup / Foo.php
Created Jan 10, 2018
PHP Singleton Class
View Foo.php
// simple singleton instance getter - one line
Class Foo {
private static $instance = null;
public static function get_instance() {
return self::$instance ?: self::$instance = new self;
// ...class code
maxviewup / SassMeister-input.scss
Last active Jul 26, 2017
SASS/SCSS #at-root and #selector-unify examples
View SassMeister-input.scss
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
// Class component
@at-root section#{&} {
You can’t perform that action at this time.