Skip to content

Instantly share code, notes, and snippets.

View evo42's full-sized avatar

Rene Kapusta evo42

View GitHub Profile
@evo42
evo42 / keybase.md
Created August 13, 2014 20:09
keybase.md

Keybase proof

I hereby claim:

  • I am evo42 on github.
  • I am renekapusta (https://keybase.io/renekapusta) on keybase.
  • I have a public key whose fingerprint is CFE6 7688 4773 EB0C E7AE FD9F 1895 91D0 242E 763D

To claim this, I am signing this object:

@evo42
evo42 / cash.htm
Created April 28, 2015 01:40
€cash
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<title>SEPA.co &middot; cash</title>
<style>
.amount-currency {
font-size: 7em;
}
@evo42
evo42 / htaccess
Created December 17, 2011 10:24 — forked from dave1010/htaccess
HTTP Status Cats Apache (htaccess) config
# HTTP Status Cats
# Apache (htaccess) config created by @dave1010
# Licensed CC BY 2.0
# Images CC BY 2.0, from GirlieMac's photostream:
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/
# Usage: copy save this file as .htaccess or add it to your httpd.conf
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>'
@evo42
evo42 / readme.md
Created January 31, 2012 02:21
Aloha Editor with textarea

Using Aloha Editor with your textarea

This is an example on how to use Aloha Editor with a traditional editable.

Note: If the textarea has a HTML ID (eg. mytxtarea) the ID of the Aloha editable will be “-aloha” suffixed (eg. mytxtarea-aloha).

For more information see the Aloha Editor Guide: http://aloha-editor.org/guides/core.html

@evo42
evo42 / aloha-editor-requirejs.html
Created February 16, 2012 16:28
Using Aloha Editor as RequireJS module /
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Load Aloha Editor with require.js</title>
<!-- load the jQuery and require.js libraries -->
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/vendor/jquery-1.7.2.js"></script>
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/require.js"></script>
<head>
<script type="text/javascript">
(function (window, undefined) {
if (window.Aloha === undefined || window.Aloha === null) {
var Aloha = window.Aloha = {};
}
Aloha.settings = {
logLevels: {
@evo42
evo42 / ae-dynamicdom.html
Created March 7, 2012 16:12
AE and dynamic DOM
<html lang="en">
<head>
<meta charset="UTF-8">
<title>The Aloha Editor - Dynamic DOM</title>
<style type="text/css">
.editable {
border: 1px dashed gray;
margin: 20px;
}
@evo42
evo42 / gist:2575073
Created May 2, 2012 08:29 — forked from hahmed/gist:1167789
Aloha Text colour plugin sample...
/**
* Text Color Plugin
*/
GENTICS.Aloha.TextColor = new GENTICS.Aloha.Plugin('TextColor');
/**
* Configure the available languages
*/
GENTICS.Aloha.TextColor.languages = ['en', 'ru'];
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }
@evo42
evo42 / observer.md
Created August 3, 2012 10:29 — forked from lloyd/observer.md
BrowserID Observer API

BrowserID "Observer" API

The BrowserID JavaScript API can be used by web pages to implement BrowserID authentication. Implementing BrowserID support consists of:

  1. registering callback functions that will be invoked when the user logs in or out via navigator.id.watch()
  2. invoking navigator.id.request() when the user clicks a login button on your site.
  3. invoking navigator.id.logout() when the user clicks a logout button on your site.