Skip to content

Instantly share code, notes, and snippets.

Avatar

Nick Briz nbriz

View GitHub Profile
@nbriz
nbriz / example-sketch.html
Created July 25, 2022 20:05
example-sketch.html
View example-sketch.html
<style>
body {
margin: 0;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/p5@1.4.2/lib/p5.js"></script>
<script>
const W = innerWidth
@nbriz
nbriz / scss-v-css.md
Last active July 2, 2020 18:06
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 October 18, 2019 00:06
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 April 8, 2016 15:54
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 October 16, 2018 10:36 — 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)');
@nbriz
nbriz / gist:0eb08d7dcddf687ea749
Last active August 29, 2015 14:03
confirmDiabox.js
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(); }