Skip to content

Instantly share code, notes, and snippets.

Avatar

Nick Briz nbriz

View GitHub Profile
@nbriz
nbriz / scss-v-css.md
Last active Jul 2, 2020
SCSS vs modern CSS
View scss-v-css.md

CSS vs SASS

CSS on its own can be fun, but stylesheets are getting larger, more complex, and harder to maintain. This is where a preprocessor can help. Sass lets you use features that don't exist in CSS yet like variables, nesting, mixins, inheritance and other nifty goodies that make writing CSS fun again.

that's from the Sass website, while I agree that may have been true 10 years ago, CSS has come a long way since then :) i think most of Sass's features (as listed here) are all things CSS3 has since taken care of. so, without further ado, my case:

Variables

SCSS (example from their website)

@nbriz
nbriz / index.html
Created Oct 18, 2019
a basic html5 structure
View index.html
<!DOCTYPE html>
<html>
<head>
<!-- meta info like the title and author of the page goes here -->
<!-- also links to any stylesheets, favicons or js libraries :)-->
</head>
<body>
View keybase.md

Keybase proof

I hereby claim:

  • I am nbriz on github.
  • I am nickbriz (https://keybase.io/nickbriz) on keybase.
  • I have a public key ASA9ponWFHHMc8jG1vcQY0jrLM-Fqp-1xvBRLTG40RXgHQo

To claim this, I am signing this object:

@nbriz
nbriz / convert.php
Created Apr 8, 2016
convert image into base64 encoded string
View convert.php
<!DOCTYPE html>
<html>
<head>
<title> img to data</title>
<meta charset="utf-8">
<style>
textarea{ width: 50%; height: 200px; }
</style>
</head>
<body>
@nbriz
nbriz / leave_facebook.js
Last active Oct 16, 2018 — forked from subimage/jquery-2.1.1.min.js
all-in-one script ( with parameters ) >> big thnx to @subimage && xtra updates by Luigi DiGangi
View leave_facebook.js
// forked from subimage's modifications of my much messier prior scripts
// ( https://gist.github.com/subimage/d952e49c9184d6a7a74f )
// after entering jquery into ur console, enter the code below in ur console
// then load a few months of activity && enter leaveFacebook(); into ur console
// u can specify parameters like so: leaveFacebook('Unlike'); if u only want to unlike
// or leaveFacebook('Unfriend'); if u only want to unfriend
// etc...
// visit nickbriz.com/facebook for vidz && details
View unfriend5.js
function unfriend() {
window.scrollBy(0,113);
setTimeout('unfriend()',2800);
}; unfriend();
View unfriend4.js
{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "WARNING: THIS IS VERY GLITCHY",
"frgb" : 0.0,
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"patching_rect" : [ 464.0, 344.0, 207.0, 20.0 ],
View gist:580a04c7884a9d0ca269
$('._4-hy').css('background-color','rgba(0, 0, 0, 0)');
View gist:0eb08d7dcddf687ea749
$('button').each(function( i ) {
if( $(this).html() == 'Continue'){ $(this).click(); }
if( $(this).html() == 'Confirm'){ $(this).click(); }
if( $(this).html() == 'Delete Post'){ $(this).click(); }
if( $(this).html() == 'Remove Tag'){ $(this).click(); }
if( $(this).html() == 'Remove Search'){ $(this).click(); }
if( $(this).html() == 'Okay'){ $(this).click(); }
});
$('span').each(function( i ) {
if( $(this).html() == 'Close'){ $(this).click(); }
View gist:973c46f7bb60c919da03
$('span').each(function( i ) {
if( $(this).html() == 'Report'){ $(this).click(); }
if( $(this).html() == 'Report/Remove Tag'){ $(this).click(); }
if( $(this).html() == 'Remove Tag...'){ $(this).click(); }
if( $(this).html() == 'Delete This Photo'){ $(this).click(); }
if( $(this).html() == 'Delete'){ $(this).click(); }
if( $(this).html() == 'Delete...'){ $(this).click(); }
if( $(this).html() == 'Unlike'){ $(this).click(); }
});
You can’t perform that action at this time.