Skip to content

Instantly share code, notes, and snippets.

@vjpr
vjpr / README.md
Last active February 26, 2024 04:39

Atom Settings

Atom took ages to setup correctly to get the same functionality I was use to when doing Node.js, ES6/7 development in IntelliJ.

Therefore I want to share all my settings with the world to hopefully save some of you some time.

I use the synced-settings Atom module which syncs my Atom settings to a Gist.

Usage

@vjpr
vjpr / .gitconfig
Created June 23, 2023 07:17 — forked from iliakan/.gitconfig
Git Diff and Merge Tool - IntelliJ
# Linux
# add the following to "~/.gitconfig" file
[merge]
tool = intellij
[mergetool "intellij"]
cmd = /usr/local/bin/idea merge $(cd $(dirname "$LOCAL") && pwd)/$(basename "$LOCAL") $(cd $(dirname "$REMOTE") && pwd)/$(basename "$REMOTE") $(cd $(dirname "$BASE") && pwd)/$(basename "$BASE") $(cd $(dirname "$MERGED") && pwd)/$(basename "$MERGED")
trustExitCode = true
[diff]
@vjpr
vjpr / README.md
Last active June 27, 2022 10:01
RPC for Chrome Packaged App to allow communication between sandbox and privileged environment

ChromeRPC

I will eventually turn this into a bower module when I have time with tests and the whole shebang.

Usage

background.html

@vjpr
vjpr / README.md
Created August 9, 2015 01:23
npm README template

live-xxx

${DESCRIPTION}

[![NPM Version][npm-image]][npm-url] [![Linux Build][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url]

Install

/******/ (function(modules) { // webpackBootstrap
/******/ // install a JSONP callback for chunk loading
/******/ function webpackJsonpCallback(data) {
/******/ var chunkIds = data[0];
/******/ var moreModules = data[1];
/******/ var executeModules = data[2];
/******/
/******/ // add "moreModules" to the modules object,
/******/ // then flag all "chunkIds" as loaded and fire callback
/******/ var moduleId, chunkId, i = 0, resolves = [];
@vjpr
vjpr / README.md
Last active February 4, 2016 21:29 — forked from skevy/gist:8a4ffc3cfdaf5fd68739
Reduce boilerplate in Redux

Reduce boilerplate in Redux

  • Create actions similar to Flummox.
  • Generate action ids.
  • Supports actions with promises, and therefore ES7 async.
@vjpr
vjpr / README.md
Last active January 4, 2016 07:49
IonIcons LESS support

To specify a custom path for use in an asset pipeline (Sprockets or Mincer), modify _ionicons-variables.less:

@ionicons-font-path: asset-dir("ionicons/fonts/ionicons.ttf");
@vjpr
vjpr / index.coffee
Created June 22, 2013 08:54
Cache compiled js of required IcedCoffeeScript files
temp = require 'temp'
fs = require 'fs'
path = require 'path'
_ = require 'underscore'
cachePath = {}
cache = {}
requireExt = (_cachePath) ->
@vjpr
vjpr / gist:5378401
Created April 13, 2013 13:27
An example of a Markdown file using   (\u2002) characters to indent paragraphs at different levels.
6  Rights and responsibilities of employees, employers, organisations etc. (Chapter 3)

            (1)  Chapter 3 sets out rights and responsibilities of national system employees, national system employers, organisations and others (such as independent contractors and industrial associations).

            (2)  Part 3-1 provides general workplace protections. It:

                     (a)  protects workplace rights; and

                     (b)  protects freedom of association and involvement in lawful industrial activities; and

@vjpr
vjpr / asyncTemplates.coffee
Created November 4, 2012 22:12
Asynchronous template compilation.
logger = require('onelog').get('AsyncTemplates')
_ = require 'underscore'
sinon = require 'sinon'
async = require 'async'
hamlc = require 'haml-coffee'
# You MUST specify the ALL names of the methods which return asynchronously.
# This is required because sync helpers can be used in conditionals.
# This is useful for retrofitting existing code, or keeping code clean
# and portable.