Skip to content

Instantly share code, notes, and snippets.

View Alvai's full-sized avatar
🦄
Learning !

Ivan Milosevic Alvai

🦄
Learning !
View GitHub Profile
@Alvai
Alvai / palette.scss
Last active May 25, 2019 19:28
[Palette] color palette #scss
/* HSLa */
$alvai-blue: HSLa(210, 77%, 57%, 1);
$alvai-dark: HSLa(210, 29%, 24%, 1);
$alvai-rose: HSLa(356, 92%, 71%, 1);
$alvai-yellow: HSLa(43, 100%, 73%, 1);
$alvai-snow: HSLa(0, 0%, 98%, 1);
/* RGBA */
$alvai-blue: rgba(60, 145, 230, 1);
$alvai-dark: rgba(44, 62, 80, 1);
@Alvai
Alvai / .zshrc
Last active January 28, 2019 21:05
Functions in .zshrc
clone() { git clone git@github.com:Alvai/"$1".git; }
useVenv() { source ~/.venvs/"$1"/bin/activate; }
@Alvai
Alvai / meme.js
Last active August 21, 2018 15:06
modal
import * as TriggerSweetAlert from 'sweetalert2';
TriggerSweetAlert({
title: 'Tu joues a quoi ?',
imageUrl: 'https://i.kym-cdn.com/photos/images/original/000/787/356/d6f.jpg',
imageAlt: 'confused Black Girl Meme',
});
@Alvai
Alvai / heroku.js
Last active December 2, 2018 20:38 — forked from Sitebase/heroku.js
Detect if node app is running on Heroku
// For Testing
const isHeroku = () => {
if (process.env.NODE && process.env.NODE.indexOf('heroku') !== -1) {
return 'This is on Heroku';
}
return 'This is not on Heroku';
};
// Not testing
const isHeroku = () => process.env.NODE && process.env.NODE.indexOf('heroku') !== -1;
@Alvai
Alvai / Capitalize.js
Last active October 23, 2018 13:15
Snippets
const capitalize = (string) => {
return string[0].toUpperCase() + string.slice(1);
};
capitalize('hello world');
// returns Hello world
@Alvai
Alvai / History|-12a5f272|entries.json
Last active May 12, 2022 09:59
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/ivan/dev/citio/custom-dag-config-generator/types/config.d.ts","entries":[{"id":"JsDL.ts","timestamp":1652194058427},{"id":"JmJD.ts","timestamp":1652194193118},{"id":"HyZL.ts","timestamp":1652194321999},{"id":"BH28.ts","timestamp":1652194660276}]}