Skip to content

Instantly share code, notes, and snippets.

View kroyxt's full-sized avatar

Kristian Soto kroyxt

  • Los Teques, Venezuela
View GitHub Profile
@seanh
seanh / vimgrep.md
Last active July 17, 2024 15:06
vimgrep cheatsheet

vimgrep

  • Vimcasts on vimgrep

  • Uses native vim regexes (which are slightly different from the regexes used by grep, ack, ag, etc) so the patterns are the same as with vim's within-file search patterns.

You can do a normal within-file search first, then re-use the same pattern to

@scabbiaza
scabbiaza / typography.less
Last active July 15, 2023 15:22
Typography. Vertical Rhythm.
// How it works: https://youtu.be/IbfsvI6dh4U
@textFontSize: 20px;
@lineHeight: 1.5rem;
// Set up font size and line-height
html {
font-size: @textFontSize;
}
@timothyis
timothyis / gulpfile.babel.js
Last active August 13, 2022 23:36
Gulp 4, ES6 gulpfile example
// Gulp module imports
import {src, dest, watch, parallel, series} from 'gulp';
import del from 'del';
import livereload from 'gulp-livereload';
import sass from 'gulp-sass';
import minifycss from 'gulp-minify-css';
import jade from 'gulp-jade';
import gulpif from 'gulp-if';
import babel from 'gulp-babel';
import yargs from 'yargs';
@janily
janily / Breakpoints
Created January 16, 2014 11:36
Mobile-first CSS Media Queries Breakpoints
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ }
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
@ryansechrest
ryansechrest / php-style-guide.md
Last active July 24, 2024 05:07
PHP style guide with coding standards and best practices.

PHP Style Guide

All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Most sections are broken up into two parts:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts
@ShabbyX
ShabbyX / .vimrc
Last active February 24, 2021 13:51
My .vimrc of course
set nocompatible
set exrc " enable per-directory .vimrc files
set secure " disable unsafe commands in local .vimrc files
autocmd!
" Enable spell checking for documents
au FileType tex,markdown,pandoc setlocal spell spelllang=en_us
" Set tab width and convert to space in certain files, based on the generally
" accepted format of community.