Skip to content

Instantly share code, notes, and snippets.

View aarongarciah's full-sized avatar
💻
Solving problems so you don't have to

Aarón García Hervás aarongarciah

💻
Solving problems so you don't have to
View GitHub Profile
@aarongarciah
aarongarciah / ITCSS.md
Last active March 14, 2024 13:52
▽ Managing CSS Projects with ITCSS - Harry Roberts Talk
@aarongarciah
aarongarciah / ITCSS.md
Last active September 6, 2022 08:10
▽ Dressing ITCSS - Daniel Fornells Talk
@aarongarciah
aarongarciah / theme-values.js
Created August 20, 2020 08:57
Getting theme values in CSS-in-JS lib
const Component = styled(
'div',
{
// a. Seamless
backgroundColor: 'primary',
padding: '0 1',
// b. With a prefix
backgroundColor: '$primary',
padding: '$0 $1',
@aarongarciah
aarongarciah / macos-apps.md
Last active January 7, 2020 08:58
macOS Recommended Apps

macOS Recommended Apps

@aarongarciah
aarongarciah / bookmark.link
Last active July 11, 2019 10:47
Hide Google Calendar Event Names
@aarongarciah
aarongarciah / sass-mixins.md
Last active August 17, 2017 08:34
Some useful Sass mixins

###Fluid properties (via)

@mixin fp($property, $min, $max, $start: 320, $end: breakpoint('desktop'), $clip: true, $clipAtStart: true, $clipAtEnd: true) {
	$start: $start / ($start * 0 + 1);
	$end: $end / ($end * 0 + 1);
	$multiplier: ($max - $min) / ($end - $start) * 100;
	$adder: ($min * $end - $max * $start) / ($end - $start);
	$formula: calc(#{$multiplier + 0vw} + #{$adder + 0px});
	@if $clip and $clipAtStart {
		@media (max-width: #{$start + 0px}) {
@aarongarciah
aarongarciah / git-tips.md
Last active March 16, 2017 06:59
Git Tips

See what you’ve been working on today (tweet by @csswizardry)

git log --since="00:00:00" --no-merges --oneline --author=<you@email.com>

git add -p

Rather than git add everything or individual files, this -p will allow you to step through each change, or hunk, and decide if you’d like to commit it. This is really handy if you have made two different changes to the same file and want to commit them separately.

@aarongarciah
aarongarciah / battery-api.markdown
Created October 7, 2016 06:28
⚡Battery API 🔋
var scrolling = false;
$(window).on('scroll', function(){
if( !scrolling ) {
scrolling = true;
(!window.requestAnimationFrame)
? setTimeout(autoHideHeader, 250)
: requestAnimationFrame(autoHideHeader);
}
});