Skip to content

Instantly share code, notes, and snippets.

View usingthesystem's full-sized avatar

Markus Müller usingthesystem

View GitHub Profile
@usingthesystem
usingthesystem / css3.styl
Created August 1, 2014 09:06
stylus css3 mixins
// MIXINS
vendor(prop, args)
-webkit-{prop} args
-moz-{prop} args
-ms-{prop} args
-o-{prop} args
{prop} args
animation()
@usingthesystem
usingthesystem / gist:d1da5e21c179ba2593b4
Created October 18, 2014 14:42
convert dir full of js files to coffee in the terminal
find . -type f -name '*.js' | while read f; do echo "grinding $f to ${f/.js/.coffee} "; js2coffee "$f" > "${f/.js/.coffee}"; done
@usingthesystem
usingthesystem / jquery-underscore
Created January 28, 2015 21:02
jQuery v1.11.2 and Underscore.js 1.7.0
/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.2",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},sl
# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio: https://gentlenode.com/
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
@usingthesystem
usingthesystem / rules-delimiter.js
Last active August 29, 2015 14:15
csscomb - rules-delimiter.js
// create the following file to insert the extra functionality rules-delimiter.js
// add the following to the configuration of csscomb: "rules-delimiter": 1
// ~/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/lib/options/rules-delimiter.js
module.exports = {
name: 'rules-delimiter',
syntax: ['css', 'less', 'sass', 'scss'],
runBefore: "strip-spaces",
setValue: function(value) {
if (typeof value === 'number') {
value = Array(value + 1).join('\n');
@usingthesystem
usingthesystem / CSScomb.sublime-settings
Created February 12, 2015 20:05
CSScomb.sublime-settings for Sublime Text
{
// Full list of supported options and acceptable values can be found here:
// https://github.com/csscomb/csscomb.js/blob/master/doc/options.md
"config": {
"block-indent": " ",
"vendor-prefix-align": true,
"space-before-closing-brace": "\n",
"space-before-selector-delimiter": 0,
"space-before-selector-delimiter": "",
"space-after-selector-delimiter": 1,
@usingthesystem
usingthesystem / switch-node-version-with-nave.sh
Created October 12, 2015 18:06
Switch Node Version with nave
switch node version to 4.1.1
nave use 4.1.1
nave usemain 4.1.1
@usingthesystem
usingthesystem / snippets.cson
Created October 30, 2015 02:14
Atom.io webpack-starter code snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
@usingthesystem
usingthesystem / kill-meteor.sh
Created November 12, 2015 16:41
Kill all running meteor instances
kill -9 `ps ax | grep node | grep meteor | awk '{print $1}'`
@usingthesystem
usingthesystem / functions.php
Last active November 3, 2016 10:31
robotsTxtDisallowOnDevEnv.php
<?php
add_filter( 'robots_txt', NS . 'customRobotsTxt', 10, 2 );
function customRobotsTxt($output, $public) {
if(WP_ENV == 'production') {
return $output;
} else {
return "User-agent: *\nDisallow: /";
}
}