Skip to content

Instantly share code, notes, and snippets.

View adahox's full-sized avatar
:octocat:

Adão Dias adahox

:octocat:
View GitHub Profile
@adahox
adahox / media-query.css
Created April 6, 2021 16:51 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@adahox
adahox / nginx-vhost-php.conf
Created October 20, 2021 12:12 — forked from lukearmstrong/nginx-vhost-php.conf
Example vhost config for Nginx (PHP)
server {
listen 80;
server_name .example.co.uk.dev;
access_log /usr/local/var/log/nginx/example.co.uk-access.log;
error_log /usr/local/var/log/nginx/example.co.uk-error.log error;
root /var/www/example.co.uk/public;
index index.php index.html;
'use strict';
/*
# Javascript Prototyping Best Practices
* To create a class, create a constructor function with a `Name` and assign
it to a variable of the same `Name`.
* In this constructor only define properties using `this.prop` notation