Skip to content

Instantly share code, notes, and snippets.

View eliud-c-delgado's full-sized avatar
💭
I may be slow to respond.

Eliud C. Delgado eliud-c-delgado

💭
I may be slow to respond.
View GitHub Profile
@john-eevee
john-eevee / gulpfile.js
Created May 20, 2017 14:39
Gulp with Sass Browsersync & Pug
const gulp = require('gulp');
const sass = require('gulp-sass');
const autoprefixer = require('gulp-autoprefixer');
const pug = require('gulp-pug');
const browserSync = require('browser-sync').create();
const gutil = require('gulp-util');
gulp.task('sass', function () {
return gulp.src('sass/**/*.scss')
.pipe(sass({ style: 'expanded', sourceComments: 'map', errLogToConsole: true }))
@Jakobud
Jakobud / _poly-fluid-sizing.scss
Last active September 18, 2022 14:24
Poly Fluid Sizing using linear equations, viewport units and calc()
/// poly-fluid-sizing
/// Generate linear interpolated size values through multiple break points
/// @param $property - A string CSS property name
/// @param $map - A SASS map of viewport unit and size value pairs
/// @requires function linear-interpolation
/// @requires function map-sort
/// @example
/// @include poly-fluid-sizing('font-size', (576px: 22px, 768px: 24px, 992px: 34px));
/// @author Jake Wilson <jake.e.wilson@gmail.com>
@mixin poly-fluid-sizing($property, $map) {
@CodeMyUI
CodeMyUI / index.html
Last active June 29, 2018 11:22
UI with UX improvements with only CSS
<input type="checkbox" id="navcheck" role="button" title="menu">
<label for="navcheck" aria-hidden="true" title="menu">
<span class="burger">
<span class="bar">
<span class="visuallyhidden">Menu</span>
</span>
</span>
</label>
<nav id="menu">
<a href="#">Lorem.</a>
@blagoeres
blagoeres / .md
Last active December 1, 2024 04:41
⭐ Frontend tooling & development environment for OS X

Setup your development environment for OS X

I bought new Macbook Pro 15 Retina. These are tools I like to install on macOS operating system.

Checklist

Prep OS X

  • Download and install latest version of Xcode from the Mac App Store.
  • Download and install Apple's Command Line Tools by issuing this command xcode-select --install
@scabbiaza
scabbiaza / List of vectors for checking on XSS
Last active December 29, 2023 07:44
ReactJS - prevent XSS vulnerability
// Theory
// http://htmlpurifier.org/live/smoketests/xssAttacks.php
// https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
// A full collection of HTML5 related XSS attack vectors:
// https://github.com/cure53/H5SC https://raw.githubusercontent.com/cure53/H5SC/master/vectors.txt
// Short list
<script>alert("XSS: script tag")</script>
<script src="http://hackers-site.powertofly.com"></script>