Skip to content

Instantly share code, notes, and snippets.

// ==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 / 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
<?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 / 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 / DateHelper.php
Created June 24, 2016 09:39
Datehelper for Pagekit, not perfect!
<?php
namespace Bixie\Freighthero\Helpers;
use Pagekit\Application as App;
class DateHelper {
@malles
malles / cart.vue
Created August 10, 2016 21:41
Cart Vue example
<template>
<div id="bix-cart">
<v-modal v-ref:modal modifier="uk-modal-dialog-blank">
<partial :name="modal_template"></partial>
</v-modal>
</div>
</template>
@malles
malles / baconipsum.py
Created September 8, 2016 16:04
Bacon ipsum plugin for Hangupsbot
import asyncio, json, logging
import urllib
import plugins
logger = logging.getLogger(__name__)
def _initialise(bot):
@malles
malles / draw.py
Created September 8, 2016 16:05
Draw simple polygon on Google Maps for Hangupsbot
import asyncio, aiohttp, io, logging, time
import urllib
import plugins
logger = logging.getLogger(__name__)
# somethin new
# somethin new
@malles
malles / wikia.py
Created September 8, 2016 16:07
Lookup Ingress Wikia facts via your Hangups bot
import asyncio, json, re
import urllib
import plugins
TAG_RE = re.compile(r'<[^>]+>')
ELLIP_RE = re.compile(r'&hellip;')
@malles
malles / simple_events.py
Created September 8, 2016 16:09
Events for Hangupsbot (copy of tl;dr plugin)
import time
import plugins
def _initialise(bot):
plugins.register_user_command(["events"])
bot.register_shared("plugin_events_shared", tldr_shared)
def events(bot, event, *args):