Skip to content

Instantly share code, notes, and snippets.

View jnaO's full-sized avatar
🧑‍🌾

Jan jnaO

🧑‍🌾
View GitHub Profile
@jnaO
jnaO / gdb.sh
Created July 4, 2019 16:45
git delete local branches
#!/bin/bash
# Author:
# jnaO
red=$(tput setaf 1)
yellow=$(tput setaf 3)
blue=$(tput setaf 4)
green=$(tput setaf 7)
normal=$(tput sgr0)
module.exports = (grunt) ->
grunt.file.readJSON 'config.json'
# Or in a js-version, probably this:
#
# module.exports = function ( grunt ) {
# return grunt.file.readJSON('config.json');
# };
@jnaO
jnaO / media_query.sublime-snippet
Last active December 21, 2015 07:29
Sublime text media query snippet
<snippet>
<content><![CDATA[@include media(\$${1:max_mobile${2:__small}}) {
${3:// style}
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>mqm</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.scss</scope> -->
</snippet>
@jnaO
jnaO / media.sass
Last active December 14, 2015 14:08
SASS: Mediaquery
=media_min_xs
@media only screen and (min-width: 380px)
@content
// Usage
// .item
// width: 50%
// +media_min_xs
// width: 100%
@jnaO
jnaO / HEY-YOU.md
Created February 15, 2013 08:02 — forked from cowboy/HEY-YOU.md
@jnaO
jnaO / gist:4672766
Last active December 11, 2015 22:58
.htaccess
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
</IfModule>
@jnaO
jnaO / chost_2
Last active December 11, 2015 07:58
chost_2
[~/Sites/client/project/root] {work} $ chost ../../../client_no_2/other_project/root
~---=== New webroot: /Users/uname/Sites/client_no_2/other_project/root ===---~
@jnaO
jnaO / chost
Last active December 11, 2015 07:58
chost
[~/Sites/client/project/root] {work} $ chost
~---=== New webroot: /Users/uname/Sites/client/project/root ===---~
@jnaO
jnaO / gist:4442816
Last active December 10, 2015 13:48
SASS - clearfix
.clearfix
*zoom: 1
&:before
content: " "
display: table
&:after
content: " "
display: table
clear: both
@jnaO
jnaO / gist:4148574
Last active October 13, 2015 05:47
SASS: prefix - lineargradient
=linearGradient($deg, $args)
$un: $deg - 90
background-image: -webkit-linear-gradient(#{$deg}deg, $args)
background-image: -moz-linear-gradient(#{$deg}deg, $args)
background-image: -o-linear-gradient(#{$deg}deg, $args)
background-image: linear-gradient(#{$un}deg, $args)