Skip to content

Instantly share code, notes, and snippets.

View nrigaudiere's full-sized avatar
🤘
Rocking in a free world

Nicolas Rigaudière nrigaudiere

🤘
Rocking in a free world
View GitHub Profile
@nrigaudiere
nrigaudiere / kitty.conf
Last active November 4, 2021 13:21
Kitty Conf
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family Inconsolata-Medium
# bold_font auto
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
@nrigaudiere
nrigaudiere / .sass-lint.yml
Created April 22, 2019 22:00
Default Linters
options:
formatter: stylish
files:
include: '**/*.s+(a|c)ss'
rules:
# Extends
extends-before-mixins: 1
extends-before-declarations: 1
placeholder-in-extend: 1
@nrigaudiere
nrigaudiere / .gitlab-ci.yml
Created May 11, 2018 13:57 — forked from thornbill/.gitlab-ci.yml
Example Node GitLab CI Yamlfile
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:6
before_script:
- npm install
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})

Formatting

spaces vs. tabs

Use only tabs for indentation. Do not use spaces. Yes, spaces would be better :), it's for historical reasons.

curly braces, control flow

  • Always put opening curly braces on new line.
  • Add a space after control flow keywords.
  • Use braces for single line ifs as well

Formatting

spaces vs. tabs

Use only tabs for indentation. Do not use spaces. Yes, spaces would be better :), it's for historical reasons.

curly braces, control flow

  • Always put opening curly braces on new line.
  • Add a space after control flow keywords.
  • Use braces for single line ifs as well
/*
https://webapps.stackexchange.com/questions/100820/how-do-i-invite-all-team-members-to-a-new-slack-channel#answer-104062
Instructions: Just browse to the appropriate channel and paste
this script (below) into your Chrome/Firefox dev console and hit enter.
Then wait for the script to run until it completes.
It might take time as there is a limit to how many users may be invited at once.
The script will loop until all team members are invited.
*/
var foundAny=false;
function selectAllByLetter(remainingLetters) {
@nrigaudiere
nrigaudiere / gitcheats.txt
Created October 20, 2017 13:10 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# get a list of all commit messages for a repo
git log --pretty=format:'%s'
# push changes to an empty git repository for the first time
git push --set-upstream origin master
# Remove + and - from start of diff lines