Skip to content

Instantly share code, notes, and snippets.

@delebash
delebash / kssnodetojson.js
Last active November 19, 2018 09:27
outputs kss to json string
//install kss and fs-extra: npm install kss fs-extra
var kss = require('kss'),
options = {
markdown: false
};
var fs = require('fs-extra');
var file = './docs/kss.json';
@delebash
delebash / gulpfile.js
Created April 20, 2015 01:13
sass-ruby example
gulp.task('sass', function () {
return sass(config.sassPath + '/style.scss',
{
style: 'expanded',
loadPath:[
'./src/sass',
config.bowerDir + '/bootstrap-sass-official/assets/stylesheets'
]})
.on('error', notify.onError(function (error){
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var config = {
sassPath: './src/sass/',
bowerDir: './bower_components',
autoprefixer: {
cascade: true
},
@delebash
delebash / package.json
Last active August 29, 2015 14:24
aurelia package.json for typescript
{
"name": "aurelia-skeleton-navigation",
"version": "0.15.1",
"description": "A starter kit for building a standard navigation-style app with Aurelia.",
"keywords": [
"aurelia",
"navigation",
"skeleton"
],
"homepage": "http://aurelia.io",
@delebash
delebash / config.js
Created July 4, 2015 19:53
aurelia jspm config
System.config({
"defaultJSExtensions": true,
"transpiler": "babel",
"babelOptions": {
"optional": [
"es7.decorators",
"es7.classProperties",
"runtime"
]
},
@delebash
delebash / build.js #aurelia
Last active September 2, 2015 23:48
aurelia typescript
var gulp = require('gulp');
var sass = require('gulp-sass');
var runSequence = require('run-sequence');
var changed = require('gulp-changed');
var plumber = require('gulp-plumber');
var ts = require('gulp-typescript');
var merge = require('merge2');
var sourcemaps = require('gulp-sourcemaps');
var paths = require('../paths');
var assign = Object.assign || require('object.assign');
@delebash
delebash / nginx-openssl_build.sh
Created June 15, 2016 04:59 — forked from AJMaxwell/nginx-openssl_build.sh
Install Nginx, OpenSSL, and ngx_pagespeed from source on Ubuntu 14.04
#!/bin/sh
##############################################################################################
## Install Nginx with OpenSSL and ngx_pagespeed
## Author: Andrew Maxwell <[email protected]>
## Date: 2016/05/27
## Version: 0.1
##
## Disclaimer: I am not responsible for how you use this script. Do not assume this script
## will work in all envrionments or any Ubuntu version other than 14.04. This script assumes
"use strict";
require('regenerator-runtime/runtime');
/**
* To learn more about how to use Easy Webpack
* Take a look at the README here: https://github.com/easy-webpack/core
**/
const easyWebpack = require('@easy-webpack/core');
const generateConfig = easyWebpack.default;
const get = easyWebpack.get;
@delebash
delebash / webpack css-sass extractText
Created July 12, 2016 05:51
webpack.config.js extractText css and sass
var path = require('path');
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
const webpack = require("webpack");
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const autoprefixer = require('autoprefixer');
const AureliaWebpackPlugin = require('aurelia-webpack-plugin');
module.exports = {
entry: {
main: [
@delebash
delebash / mongodb-setup.sh
Created November 16, 2016 18:49 — forked from meSingh/mongodb-setup.sh
MongoDB Setup on Ubuntu 14.04 with PHP7
#!/bin/bash
# MongoDB Setup on Ubuntu 14.04 with PHP7
# Source:
#1. Import the public key used by the package management system:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
#2. Create a list file for MongoDB.
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list