Skip to content

Instantly share code, notes, and snippets.

View kino90's full-sized avatar
🍪
Come to the Dark Side.. We have Cookies!

Luca Maroni kino90

🍪
Come to the Dark Side.. We have Cookies!
View GitHub Profile
@kino90
kino90 / windows terminal settings.js
Last active July 30, 2020 07:36
My config file for Windows Terminal
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
PS1='\[\033]0;${PWD//[^[:ascii:]]/?}\007\]' # set window title
PS1="$PS1"'\n' # new line
# ------------------------------------------------------
# PS1="$PS1"'\[\033[30m\]' # change to Black
# PS1="$PS1"'\[\033[31m\]' # change to Red
# PS1="$PS1"'\[\033[32m\]' # change to Green
# PS1="$PS1"'\[\033[33m\]' # change to Yellow
# PS1="$PS1"'\[\033[34m\]' # change to Blue
# PS1="$PS1"'\[\033[35m\]' # change to Magenta
@kino90
kino90 / .gitconfig
Created October 16, 2019 13:56
Git configuration file with useful alias
[core]
autocrlf = input
ignorecase = false
[user]
name = YourName
email = your.email.address@example.com
[alias]
# fetch
f = fetch
@kino90
kino90 / .bashrc
Created October 16, 2019 13:54
Bashrc alias
alias dev="cd /c/Dev"
alias nd="npm run dev"
alias ns="npm run start"
alias nb="npm run build"
alias ni="npm i"
alias no="npm outdated"
alias bs="blade server start"
alias bd="blade deploy"
alias ll="ls -l --color"
alias quit="exit"
@kino90
kino90 / curaengine.md
Created July 5, 2018 22:31 — forked from nickoala/curaengine.md
Build CuraEngine on Raspbian or Ubuntu

Build CuraEngine on Raspbian or Ubuntu

CuraEngine requires libArcus which requires protobuf. Let's build them in turn.

Make sure python3 is Python 3.4 or higher.

Install utilities used by the build process:

var getQueryString = function (queryString) {
var query = (queryString || window.location.search).substring(1); // delete ?
if (!query) {
return false;
}
return _
.chain(query.split('&'))
.map(function(params) {
var p = params.split('=');
return [p[0], decodeURIComponent(p[1])];
@kino90
kino90 / liferay-6.2-bootstrap-3-compatibility.css
Created April 14, 2016 11:02
Snippet for avoid conflicts between Bootstrap 2.3.2 and Bootstrap 3 in Liferay 6.2
/**
Avoids conflicts between Bootstrap 2.3.2 and Bootstrap 3
Src: http://www.liferayui.com/bootstrap-3-liferay-6-2/
*/
.signed-in .collapse { display:block; }
.lfr-edit-layout-panel .collapse{ display:block; }
.dockbar.navbar-static-top .collapse { display: block; }
.navbar-inner .collapse{ display:block; }
.dockbar-ready #wrapper { margin-top: 149px; }
@kino90
kino90 / _shadows.scss
Last active April 1, 2016 15:28
Material design shadows helper for SASS.
// Usage: .card { @extend %shadow-2; }
%shadow-1 {
box-shadow:
0 1px 3px rgba(0,0,0,0.12),
0 1px 2px rgba(0,0,0,0.24);
}
%shadow-2 {
box-shadow:
0 3px 6px rgba(0,0,0,0.16),
@kino90
kino90 / main.js
Last active February 9, 2016 11:10
Basic js namespacing snippet
var Main = function(){
var vars = {
},
init = function(){
//init
};
return {
init: function(){ init(); }
@kino90
kino90 / _decimal.scss
Created February 3, 2016 09:40 — forked from terkel/_decimal.scss
Rounding decimals in Sass
// _decimal.scss | MIT License | gist.github.com/terkel/4373420
// Round a number to specified digits.
//
// @param {Number} $number A number to round
// @param {Number} [$digits:0] Digits to output
// @param {String} [$mode:round] (round|ceil|floor) How to round a number
// @return {Number} A rounded number
// @example
// decimal-round(0.333) => 0