Skip to content

Instantly share code, notes, and snippets.

View Defite's full-sized avatar
🚙

Nikita Makhov Defite

🚙
View GitHub Profile
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active April 22, 2024 13:01
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@ChillyBwoy
ChillyBwoy / Person.css
Last active February 13, 2018 15:41
TypeScript React Sample
.root {
position: relative;
}
.isActive {
background: green;
}
.gender_male {
border: 1px solid #00f;
@jorgt
jorgt / highlight.js
Last active March 19, 2016 06:04
Hexo lib/utli/highlight.js without elements I don't need like tables and above all accepting standard highlightjs themes
/*
Adaption of Hexo's hexo\node_modules\hexo-util\lib\util\highlight.js
original code highlighter uses <figure> and <table>s as gutter. Had some validation issues. Also did not accept
standard higlightjs themes (https://github.com/isagalaev/highlight.js/tree/master/src/styles) which are now
just drop in.
captions still require a tiny bit of css of your own because they're not standard in highlightjs.
I'm accompanying this by a tiny JS that adds .hljs to every pre tag that doesn't contain it, so it applies to
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 7, 2024 09:29
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@mrosati84
mrosati84 / toggleClass.html
Created October 2, 2013 10:52
Simple toggleClass implemented in AngularJS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.is-active {
color: red;
}
</style>
// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %>
'use strict';
var moment = require('moment');
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT});
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
@Awilum
Awilum / CSS Hacks!
Created May 16, 2013 06:21
CSS Hacks for IE6, IE7, IE8, FireFox, Opera, Safari, Chrome!
/* IE8 Only */
.myClass {
color:red\0/;
padding:70px\0/;
}
/* IE 6 Only */
* html .myClass {
...
}
@Frobitz
Frobitz / coffeescript-homebrew
Created August 4, 2012 13:32
Install CoffeeScript with Homebrew on OS X 10.8 Mountain Lion
# Install Homebrew
ruby <(curl -fsSk https://raw.github.com/mxcl/homebrew/go)
# Follow on-screen instructions (X11 isn't necessary for this if it shows as not installed)
brew install node
# Open .bashrc and add this line (create .bashrc if its not in your home directory already)
@fnhipster
fnhipster / html5.haml
Created April 9, 2011 01:19
HTML5 HAML Template
!!! 5
%html
%head
%title= "Your Website"
%meta{ :content => "", :name => "description" }
%meta{ :content => "", :name => "author" }
%meta{ :content => "3 days", :name => "revisit-after" }
%link{ :href => "http://creativecommons.org/licenses/by/3.0/", :rel => "license", :title => "Creative Commons Attribution 3.0 Unported License" }
%link{ :href => "/feed", :rel => "alternate", :title => "Atom", :type => "application/atom+xml" }
%link{ :href => "/css/screen.css", :media => "screen", :rel => "stylesheet" }