Skip to content

Instantly share code, notes, and snippets.

@VitaliyR
VitaliyR / script.sh
Created February 10, 2016 14:07
Update all git repositories recursively in current directory to provided branch
# Use gitcheckout -h to see available flags
function gitcheckout {
local defaultBranch='master'
local branch
local foundBranch
local force=false
local update=true
local verbose=false
local exclude
@VitaliyR
VitaliyR / task.js
Last active November 19, 2015 14:57
Grunt PostCSS Stylelint SCSS linter
var stylelint = require('stylelint');
var scss = require('postcss-scss');
var scssGraph = require('sass-graph');
var lintOptions = {
processors: [
stylelint()
],
syntax: scss,
map: false,
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@VitaliyR
VitaliyR / newplugin.js
Created June 22, 2015 08:50
Extend jQuery plugin
(function($) {
/**
* Namespace: the namespace the plugin is located under
* pluginName: the name of the plugin
*/
var extensionMethods = {
/*
* retrieve the id of the element
* this is some context within the existing plugin
*/