Skip to content

Instantly share code, notes, and snippets.

View jednano's full-sized avatar
💾
Writing codes

Jed jednano

💾
Writing codes
  • Austin, TX
View GitHub Profile
@jednano
jednano / gitcom.md
Last active May 31, 2023 08:23
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

git init
[user]
name = First Last
email = user@domain.com
[credential]
helper = wincred
[core]
editor = code --wait
excludesfile = C:/Users/jedma/.gitignore
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export PATH="/usr/local/opt/python/bin:$PATH"
export GPG_TTY=$(tty)
# export START="$HOME/a"
# if [[ $PWD == $HOME ]]; then
# cd $START
# fi
# alias ls='ls -F --color --show-control-chars'
@jednano
jednano / sublime.json
Created June 21, 2013 17:47
In Sublime Text 2, select Preferences >> Settings – User
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_size": 14,
"highlight_line": true,
"ignored_packages": ["Vintage"],
"rulers": [80, 120],
"shift_tab_unindent": true,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
@jednano
jednano / fonts.scss
Last active December 19, 2015 01:09
A SCSS font mix-in that gives you both fast load times and ultimate compatibility.
@import "compass/css3/font-face";
@mixin app-font($name, $weight: normal, $style: normal)
{
$font-files:
inline-font-files(
'#{$name}.woff', woff
),
font-files(
@jednano
jednano / _colors.scss
Last active October 2, 2018 21:11
Maintainable OOCSS with Sass/Compass and BEM syntax
// Color names are not intended for direct use in your Sass files.
// Create a color map for each hue (e.g., neutrals, reds, yellows, greens and browns).
// http://www.color-blindness.com/color-name-hue/
$neutrals: (
gray: #7f7f7f
);
$blues: (
mariner: #4862a3,
@jednano
jednano / _mixins.scss
Last active August 29, 2015 13:58
Sass mixins
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
@mixin app-font($name, $weight: normal, $style: normal) {
$font-files:
inline-font-files(
'#{$name}.woff', woff
),
@jednano
jednano / logger.js
Created December 5, 2014 23:24
Isomorphic Logger
/*eslint-disable no-console */
var LOG_METHODS = ['debug', 'error', 'info', 'warn'];
function log() {
if (!console || !console.log) {
return;
}
console.log.apply(console, arguments);
}
@jednano
jednano / auto-sprites.scss
Created February 5, 2015 05:48
Auto Spriting
$bem-blocks: (
"foo",
"bar",
"baz"
);
$sprite-files: ();
/*
* Generate BEM-style silent classes for BEM sprites
const checkers = {
isSize(value) {
throw new Error('Not implemented');
},
isStyle(value) {
throw new Error('Not implemented');
},
isVariant(value) {
throw new Error('Not implemented');
},