Skip to content

Instantly share code, notes, and snippets.

View caffeinewriter's full-sized avatar

Brandon Anzaldi caffeinewriter

  • Blitz
  • Greater Los Angeles Area, California
View GitHub Profile
const bodyData = document.body.dataset;
if (bodyData.bookmarkletPasswordToggle && bodyData.bookmarkletPasswordToggle === 'shown') {
const passInputs = document.querySelectorAll('input[data-password-shown=true]');
passInputs.forEach(v => {
v.type = 'password';
v.dataset.passwordShown = 'false';
});
bodyData.bookmarkletPasswordToggle = 'hidden';
} else {
const passInputs = document.querySelectorAll('input[type=password]');
@caffeinewriter
caffeinewriter / bookmarklet.html
Created December 7, 2017 07:40
Twitch Custom Username Color
<html>
<head>
<style>
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
@caffeinewriter
caffeinewriter / tgsd.js
Last active September 21, 2019 14:40
Telegram Sticker Pack Downloader
(function () {
if(document.location.hostname !== "web.telegram.org") {
alert("This script can only be used on web.telegram.org");
return;
}
if (!document.querySelector("[ng-bind=\"stickerset.title\"]")) {
var smInfo = `Sticker modal not open! Please open the sticker modal before continuing.
Example:
https://t.me/addstickers/LoZTriforceHeroes
meta.foundation-version {
font-family: "/5.5.1/"; }
meta.foundation-mq-small {
font-family: "/only screen/";
width: 0; }
meta.foundation-mq-small-only {
font-family: "/only screen and (max-width: 40em)/";
width: 0; }
@caffeinewriter
caffeinewriter / wp-fingerprint.py
Last active August 29, 2015 14:13
Wordpress Version Fingerprinter
import argparse
import requests # Requires install of Requests: http://python-requests.org/
import re
from urlparse import urlparse
def main():
parser = argparse.ArgumentParser("Detects WP version from readme.html or meta tag")
parser.add_argument("-t", "--target", action="append", dest="targets", help="Add a target to scan")
args = parser.parse_args()

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@caffeinewriter
caffeinewriter / recedingMenu.js
Last active August 29, 2015 14:02
jQuery Receding Menu
//jQuery to retract a menu on scroll down, and show on scroll up, in 11 SLOC
var menuSelector = '.menuClass #menuId';
var lastScrollTop = 0;
$(window).scroll(function(event){
var st = $(this).scrollTop();
if (st > lastScrollTop){
$(menuSelector).slideUp(400,'easeOutCirc');
} else {
$(menuSelector).slideDown(400,'easeOutCirc');
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides