Skip to content

Instantly share code, notes, and snippets.

@malles
malles / gmaps-autocompete.vue
Created June 1, 2016 12:11
Google Maps Autocomplete Freighthero
<template>
<div class="uk-form-password uk-width-1-1">
<a v-show="search != ''" @click="clearAddress" class="uk-form-password-toggle uk-icon-close uk-icon-hover"></a>
<input type="text" v-el:search v-model="search" :class="inputclass" @keyup.enter.stop="">
</div>
</template>
<script>
@malles
malles / uikit_lightbox_iframe.js
Last active May 24, 2016 15:50
UIkit lightbox Iframe plugin
(function () {
"use strict";
UIkit.on('beforeready.uk.dom', function () {
UIkit.plugin("lightbox", "iframe", {
init: function (lightbox) {
<?php
/**
* @version 4.7.0
* @package AllVideos (plugin)
* @author JoomlaWorks - http://www.joomlaworks.net
* @copyright Copyright (c) 2006 - 2015 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
@malles
malles / output.txt
Created January 16, 2016 13:22
Vagrant up output
vagrant up
Bringing machine 'local' up with 'virtualbox' provider...
==> local: Importing base box 'puphpet/ubuntu1404-x64'...
==> local: Matching MAC address for NAT networking...
==> local: Checking if box 'puphpet/ubuntu1404-x64' is up to date...
==> local: Setting the name of the VM: YOO-develop_local_1452949267092_45295
==> local: Clearing any previously set network interfaces...
==> local: Preparing network interfaces based on configuration...
local: Adapter 1: nat
local: Adapter 2: hostonly
@malles
malles / csv-import CRM.php
Last active January 4, 2016 00:29
Bewerking adres en genereren willekeurige code.
<?php
//read and convert CSV data
$file = 'Postmailing.csv';
$dataRows = array();
$del = ';';
echo '<pre>';
$csv = implode(';',adres::$csvFields)."\n";
if (($handle = fopen($file, "r")) !== FALSE) {
$i=0;
while ( ($data = fgetcsv($handle, 10000, $del) ) !== FALSE ) {
@malles
malles / cli
Created January 4, 2014 11:44
Een Git Repository creëren via de Command Line
~$ mkdir projectname
~$ cd projectname
~$ git init
~$ touch file1
~$ git add file1
~$ git commit -m 'first commit'
~$ git remote add origin git@github.com:USER/REPO.git
~$ git push origin master
@malles
malles / bixorder.php
Last active January 2, 2016 04:59
calc inkoop
<?php
public function calculateInkoop () {
//inkoop berekenen
$calcParams = array('calcType'=>'inkoop');
$bixCalc = BixTools::getCalcClass($this,$calcParams);
$inkoopPrijsInfo = $bixCalc->calcInkoop();
if (!$inkoopPrijsInfo) {
return $this->setError($bixCalc->getError());
}
$aFinancieel = $this->get('financieel',array());
@malles
malles / bix_upload_uikit.js
Last active November 3, 2015 13:29
Implementation of UIkit uploader
/* *
* Bixie Printshop
* bix_upload_uikit.js
* Created on 21-12-2014 00:58
*
* @author Matthijs
* @copyright Copyright (C)2014 Bixie.nl
*
*/
// ==UserScript==
// @name Dark
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match https://github.com/
// @match https://*.facebook.com/*
// @grant none
// ==/UserScript==
@malles
malles / config.php
Created September 21, 2015 11:36
Pagekit Config File
<?php return array (
'database' =>
array (
'default' => 'mysql',
'connections' =>
array (
'mysql' =>
array (
'host' => 'localhost',
'user' => 'pagekit',