Skip to content

Instantly share code, notes, and snippets.

View englishextra's full-sized avatar
💜
the beat goes on

englishextra englishextra

💜
the beat goes on
View GitHub Profile
@englishextra
englishextra / hosts
Created April 25, 2020 07:59 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@englishextra
englishextra / hosts
Created April 25, 2020 07:58 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@englishextra
englishextra / hosts-yt-ads
Created April 16, 2019 17:14 — forked from ewpratten/hosts-yt-ads
youtube ads hosts file
# youtube ads hosts file
# https://gist.github.com/Ewpratten/a25ae63a7200c02c850fede2f32453cf
0.0.0.0 youtube-nocookie.com
0.0.0.0 www.youtube-nocookie.com
0.0.0.0 www-googletagmanager.l.google.com
0.0.0.0 stats.g.doubleclick.net
0.0.0.0 static.doubleclick.net
0.0.0.0 ssl.google-analytics.com
0.0.0.0 securepubads.g.doubleclick.net

BEM Cheatsheet

BLOCK

Block encapsulates a standalone entity that is meaningful on its own.

While blocks can be nested and interact with each other, semantically they remain equal; there is no precedence or hierarchy.

Holistic entities without DOM representation (such as controllers or models) can be blocks as well.

/*!
* modified so that not to use iScroll v5.1.3 github.com/cubiq/iscroll/blob/master/build/iscroll-lite.js
* cdnjs.cloudflare.com/ajax/libs/iScroll/5.1.3/iscroll-lite.min.js
* see why here github.com/blivesta/drawer/issues/21
* jquery-drawer v3.1.0
* Flexible drawer menu using jQuery, iScroll and CSS.
* http://git.blivesta.com/drawer
* License : MIT
* Author : blivesta <design@blivesta.com> (http://blivesta.com/)
*/
<html lang="en-us"></html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" cntnt="IE=edge"/>
<title></title>
<meta name="viewport" cntnt="width=device-width, initial-scale=1, user-scalable=0, maximum-scale=1.0"/>
<meta name="description"/>
<link rel="stylesheet" href="css/.min.css"/>
<link rel="stylesheet" href="css/theme.min.css"/>
@englishextra
englishextra / library.scss
Created July 31, 2018 17:32 — forked from certainlyakey/library.scss
URL-encode color SASS function / convert color to hex SASS function
//does not work with colors containing alpha
@function encodecolor($string) {
@if type-of($string) == 'color' {
$hex: str-slice(ie-hex-str($string), 4);
$string:unquote("#{$hex}");
}
$string: '%23' + $string;
@return $string;
}
@englishextra
englishextra / LICENCE SUBLIME TEXT
Created April 28, 2018 09:50 — forked from cprakashagr/LICENCE SUBLIME TEXT
Sublime Text 3 Serial key build is 3143
## Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
@englishextra
englishextra / web-design-for-mobiles-and-tablets-viewport-sizes
Last active April 17, 2018 16:02 — forked from francoishill/gist:6483997
web-design-for-mobiles-and-tablets-viewport-sizes
/*http://i-skool.co.uk/mobile-development/web-design-for-mobiles-and-tablets-viewport-sizes/*/
/*At least requires the meta viewport tag with content 'width=device-width'*/
@media only screen and (max-width: 1080px) and (orientation : portrait) {
/* PORTRAIT:
Windows Surface Pro*/
}
@media only screen and (max-width: 800px) and (orientation : portrait) {
/* PORTRAIT:
Acer Iconia Tab A100
@englishextra
englishextra / FX.js
Last active April 4, 2018 05:44
modified implementing fadeIn and fadeOut without jQuery
/*!
* implementing fadeIn and fadeOut without jQuery
* gist.github.com/englishextra/baaa687f6ae9c7733d560d3ec74815cd
* modified jsfiddle.net/LzX4s/
* changed options.complete(); to:
* function"==typeof options.complete && options.complete();
* usage:
* FX.fadeIn(document.getElementById('test'),
* {duration:2000,complete:function(){alert('Complete');}});
*/