Skip to content

Instantly share code, notes, and snippets.

View rejas's full-sized avatar
🚀
it's not rocket science, we just sell it like it is...

Veeck rejas

🚀
it's not rocket science, we just sell it like it is...
View GitHub Profile
@rejas
rejas / npx tools
Last active October 9, 2019 11:18
npx tools
npx jsx-info
npx thanks
npx is-website-vulnerable https://example.com
/*!
* modernizr v3.6.0
* Build https://modernizr.com/download?-beacon-setclasses-dontmin
*
* Copyright (c)
* Faruk Ates
* Paul Irish
* Alex Sexton
* Ryan Seddon
* Patrick Kettner
#shift exif date by one hour
exiftool -AllDates+=1:00 -overwrite_original P1080300.JPG
# rename according to exif date
exiftool '-filename<CreateDate' -d IMG_%Y%m%d_%H%M%S%%-c.%%le *.JPG
{
"env": {
"node": true,
"es6":true
},
"rules": {
/*
** STRICT MODE
** These rules relate to using strict mode.
*/
@rejas
rejas / _normalize_images.css
Last active August 29, 2015 14:07
_normalize_images.css
img, picture { max-width: 100vw; max-height: 100vh; }
@rejas
rejas / _adaptive_placeholder.less
Last active August 29, 2015 14:04
less-mixin for input placeholders becoming input labels.
/**
* As seen on http://blog.circleci.com/adaptive-placeholders/
* featured on LittleBigDetails
* http://littlebigdetails.com/post/82478225432/
*/
// First, pass in the important variables.
.adaptive_placeholder(@height, @radius, @margin: 1em, @border: 1px) {
@borders: (@border * 2); // <- To avoid repeating below
box-sizing: border-box; // <- Important for accurate sizing
@rejas
rejas / _baseline.less
Last active August 29, 2015 14:01 — forked from razwan/_baseline.scss
less-based version of sass-mixin from https://medium.com/p/e258fce47a9b
@base-font-size: 16px;
@base-line-height: 1.5;
// this value may vary for each font
// unitless value relative to 1em
@cap-height: 0.68;
.baseline(@font-size, @scale: 2) {
// rhythm unit