Skip to content

Instantly share code, notes, and snippets.

View jjasonclark's full-sized avatar
🏠
Working from home

Jason Clark jjasonclark

🏠
Working from home
View GitHub Profile
@jjasonclark
jjasonclark / .gitattributes
Created December 10, 2019 17:45
basic git attributes
* text=auto eol=lf
@jjasonclark
jjasonclark / .eslintrc.js
Created December 10, 2019 17:41
common node eslint config
module.exports = {
env: {
commonjs: true,
es6: true,
node: true
},
extends: ['formidable/configurations/es6-node', 'prettier'],
parserOptions: {
ecmaVersion: 2018
},
@jjasonclark
jjasonclark / docker-compose.yml
Created November 29, 2017 02:54
Docker compose file for nodejs-dashboard test application
version: '3.0'
volumes:
node_modules:
services:
app:
image: node:8-alpine
command: yarn run test-app
working_dir: '/app'
environment:
@jjasonclark
jjasonclark / Dockerfile
Created November 29, 2017 02:34 — forked from enko/Dockerfile
docker and colors reproduction
FROM node:6.6
# add node modules folder to path and set global node path
ENV NODE_PATH /opt/node_modules
ENV PATH /opt/node_modules/.bin:$PATH
# copy dependency file for npm into the container --> everytime (to update possible dependencies)
ADD package.json /opt/package.json
# rm old node_modules
import AWS from 'aws-sdk';
const sns = new AWS.SNS();
export const promisePublish = params => sns
.publish({
Message: JSON.stringify(params.message),
TopicArn: params.topicArn
})
.promise();
import AWS from 'aws-sdk';
const lambda = new AWS.Lambda();
const createAsyncInvokeParams = (
{
functionName,
payload
}
) => ({
@jjasonclark
jjasonclark / webpack.config.js
Last active February 18, 2016 05:40
Failing to include scss imports
var webpack = require('webpack');
var path = require('path');
var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('common.js');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var extractCSS = new ExtractTextPlugin("css/[name].css");
var extractSCSS = new ExtractTextPlugin("css/[name].scss");
module.exports = {
context: __dirname + '/assets',
entry: {
function befe
{
export $( cat .env | xargs ) && $@
}
;(function($, window, document, undefined) {
var pluginName = "name me":
$.fn[pluginName] = function (method) {
var dataName = "plugin_" + pluginName;
return this.each(function() {
var localData = $.data(this, dataName);
if (undefined === $.data(this, dataName)) {
var options = $.extend({}, $.fn[pluginName]["defaults"], method);
$.data(this, dataName, plugin(this, options));
source "https://rubygems.org"
gem 'pry'
gem "scoped_attr_accessor", github: "dbrady/scoped_attr_accessor", branch: "master"