Skip to content

Instantly share code, notes, and snippets.

View cannap's full-sized avatar
💥
Working from home

Marko Bolliger cannap

💥
Working from home
View GitHub Profile
@cannap
cannap / gulpfile.js
Created May 9, 2014 10:46
Gulpfile for Laravel with vendor/admin/public dirs
var gulp = require('gulp');
var notify = require('gulp-notify');
var minifyCSS = require('gulp-minify-css');
var uglify = require('gulp-uglify');
var livereload = require('gulp-livereload');
var concat = require('gulp-concat');
//Main App
var cssDir = 'app/assets/css';
Template.fehler.events({
'click .show-tool': function () {
if (Fehler.viewCache) {
Blaze.remove(Fehler.viewCache);
Fehler.viewCache = false;
}
// Fehler.viewCache = Blaze.render(Template[this.templateName], document.body);
Fehler.viewCache = Fehler.renderView(this.templateName,{title: 'HI'});
var gulp = require('gulp'),
sass = require('gulp-sass'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
notify = require('gulp-notify'),
plumber = require('gulp-plumber'),
sourcemaps = require('gulp-sourcemaps'),
autoprefixer = require('gulp-autoprefixer'),
browserSync = require('browser-sync').create(),
rename = require('gulp-rename'),
var webpack = require('webpack');
var path = require('path');
var WebpackNotifierPlugin = require('webpack-notifier')
//console.log('Node Modules: '+ JSON.stringify(nodeModules));
module.exports = {
debug: true,
devtool: 'source-map',
{
"name": "app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
#Persistent
SetTimer, WinChange, 2000
Switched := -1
return
WinChange:
WinGetTitle, title, A
GetMonitor(hwnd := 0) {
; If no hwnd is provided, use the Active Window
@cannap
cannap / index.js
Last active April 5, 2017 13:36
icons8 to json
var fs = require('fs')
var path = require('path')
var jsonfile = require('jsonfile')
var cheerio = require('cheerio')
// Settings
var cssFilePath = path.resolve(__dirname, './preview.html')
var outputFile = path.resolve(__dirname, './config.json')
const Container = {
functional: true,
render (h, { data, children }) {
var containerClass = 'container'
if (data.attrs && Object.keys(data.attrs).toString() === 'fluid') {
containerClass = `${containerClass}-fluid`
}
return h(
'div',
const octArrowSmallDown = {
functional: true,
name: octArrowSmallDown,
props: {
height: {
type: [String, Number],
default: 24
},
width: {
function template (data) {
return `
const ${data.componentName} = {
functional: true,
name: '${data.componentName}',
props: {
height: {
type: [String, Number],
default: 24
},