Skip to content

Instantly share code, notes, and snippets.

@bensimian
bensimian / Standard.json
Created December 23, 2015 20:35 — forked from johndwells/Standard.json
My "standard" json config for redactor
{
buttons: ['formatting','bold','italic','|','unorderedlist','orderedlist','|','link','image','video','|','html'],
plugins: ['fullscreen', 'wordcount','video'],
toolbarFixedBox: true,
formatting : ['p', 'h2', 'h3', 'h4', 'blockquote'],
formattingAdd: [
{
tag: 'p',
title: 'Standfirst',
class: 'standfirst'
@bensimian
bensimian / easing.js
Last active August 29, 2015 14:09 — forked from gre/easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
<script src="jquery-1.6.1.min.js"></script>
<script src="socket.io/socket.io.js"></script>
<script>
var socket = new io.Socket(null,{port:8080});
socket.connect();
socket.on('message',function(obj){
switch(obj.tipo){
case 'imagen':
img = document.getElementById('stream');
img.src="";
/**
* JavaScript implementation of a Proxy class.
**/
​function Proxy(p_target)
{
var self = this;
self.target = p_target;
// Access target's properties
self.get = function (p_property)
<?xml version="1.0" encoding="utf-8"?>
<project name="tutorialProject" default="prod" basedir="/Users/addy/buildTut/">
<description>Client-side ANT build file example</description>
<target name="-load.properties"
description="Set properties for this build">
<!--YUI Compressor location-->
<property name="yui.dir" value="${basedir}/yuicompressor/build/yuicompressor-2.4.2.jar"/>
<!--Source JS dir-->