Skip to content

Instantly share code, notes, and snippets.

View queckezz's full-sized avatar

Fabian Eichenberger queckezz

View GitHub Profile
@queckezz
queckezz / colors.js
Last active September 16, 2015 13:01
style snippets
const shades = [87, 54, 26]
const black = '#000'
const white = '#fff'
const dark = {
primary: lighten(black, shades[0])
secondary: lighten(black, shades[1])
disabled: lighten(black, shades[2])
}
@queckezz
queckezz / 00_overview.md
Last active September 15, 2022 11:22
An extensive excel vba documentation for creating large-scale apps without a total mess

Excel VBA

Many times you want to fiddle around with amazing tech like React or RustLang that are pushing the boundaries of what is possible. Back to the real world, there are still cases where an Excel sheet is more appropiate. Especially when companies previously built around it and have existing legacy code. Maybe the end user simply wants just one file to send per mail or move around. For this, Excel is still a viable option.

So for those people that are struggling with the limited vba language, this documentation aims to improve just a little bit of the developer experience while creating excel applications.

This may also partially apply to other office suite applications.

Feel free to send pull request with your Excel code that you found helpful or documentation additions.

@queckezz
queckezz / index.js
Created September 15, 2015 19:10
redux starter
import { createStore, applyMiddleware, compose } from 'redux'
import createLogger from 'redux-logger'
import { log } from './util'
const logger = createLogger({ collapsed: true })
const mw = applyMiddleware(logger)
const Store = mw(createStore)
const store = Store((state = {}, action) => state)
@queckezz
queckezz / index.js
Created September 15, 2015 18:40
react componentes as functions
import ReactInstance from 'react'
const create = React => {
return function (init, fn) {
if (arguments.length == 1) {
fn = init
init = null
}
return React.createClass({

Spacings

Paddings

  • all
  • x, y

Margins

  • all
@queckezz
queckezz / snippets.sh
Last active September 14, 2015 19:20
# calc size of folder
du -s directory_name
# get available space for all disks
df -h
# check npm updates
@queckezz
queckezz / stream.js
Created July 14, 2015 12:17
remap flyd functions to more convenient api
const {
reject,
identical,
keys,
pick,
mapObjIndexed
} = require('ramda')
const flyd = require('flyd')
const Type = require('union-type')
const h = require('snabbdom/h')
const flyd = require('flyd')
const R = require('ramda')
const patch = require('snabbdom').init([
require('snabbdom/modules/class'),
require('snabbdom/modules/style'),
require('snabbdom/modules/props'),
@queckezz
queckezz / parse.js
Created October 5, 2013 15:35
parse 'str=value' like document.cookie to objects
var decode = decodeURIComponent;
function parse(str) {
var obj = {};
var pairs = str.split(/ *; */);
var pair;
if ('' == pairs[0]) return obj;
for (var i = 0; i < pairs.length; ++i) {
pair = pairs[i].split('=');
obj[decode(pair[0])] = decode(pair[1]);
/* For Fluid Images, Flash and HTML5 videos */
img,
embed,
object,
video {
max-width: 100%;
}
/* <3 */