Skip to content

Instantly share code, notes, and snippets.

View DimitarChristoff's full-sized avatar

Dimitar Christoff DimitarChristoff

View GitHub Profile
require(['prime/prime'], function(prime){
var Rectangle = prime({
constructor: function(width, height){
return this.setwidth(width).setHeight(height);
},
setWidth: function(width){
this.width = width;
return this; // allow chaining

{{recruiter}},

On {{dates}} the attached messages were sent to my private email address. This email was unsolicited commercial email and, since we have never had any dealings previously, was unlawfully sent.

In particular, it was contrary to section 22 of The Privacy and Electronic Communications (EC Directive) Regulations, (SI2426/2003) ["PECR"]. In addition, this action breaches your obligations under the Data Protection Act 1998, as there was no consent to process the personal data comprised by the personal email address. As the affected data subject I require you to:

  1. Confirm whether you are registered as a data controller under the Data Protection Act 1998, and if so, explain how this activity complies with your registration.
  2. Cease any processing or sale of my data for all purposes, including direct marketing.
  3. Provide a copy of all data you hold which relates to me.
  4. Erase any personal data you hold about me.
@DimitarChristoff
DimitarChristoff / index.js
Created July 9, 2013 14:04
made with requirebin.com
// hello world
require('mootools');
require('colors');
var foo = new Class({
Implements: [Options, Events],
initialize: function(options){
this.setOptions(options);
dataPoints: (function(){
var ret = [];
for ( i=0; i < bolas.length; i++ )
ret.push({y: 1000, label: bolas[i]});
return ret;
}())
@DimitarChristoff
DimitarChristoff / Array.ByteArray.js
Last active December 17, 2015 08:59
How to subtype Array so that Object.prototype.toString.call(subarray) returns a custom string and allow for custom methods.
// create a fake Array subtype, eg ByteArray.
var oO = (function(){
'use strict';
var push = Array.prototype.push,
id = '[object ByteArray]',
uid = 0,
storage = {},
props = {
// gets copied on our instances.
define(['require', 'lib/requirejs/require-css/normalize'], function(req, normalize){
// todo: refactor via require('colors') for nodejs;
var baseUrl = require.toUrl('.'),
greenOn = '\033[32m',
greenOff = '\033[39m',
redOn = '\033[31m',
redOff = greenOff,
ok = greenOn + '✔' + greenOff,
fail = redOn + '×' + redOff;
var prime = (function(){
'use strict';
var sFunction = 'function';
var has = function(self, key){
return Object.hasOwnProperty.call(self, key);
};
var each = function(object, method, context){
for (var key in object)
/* Bootstrap */
@import-once 'less/bootstrap/bootstrap';
/* Apps css */
@import-once 'less/currency-pair';
@import-once 'less/blotter';
@import-once 'less/dashboard';
@import-once 'less/login';
/* branding */
@import-once 'less/foo';
/* Desktop specific */
.foo {
background: @red;
}
'use strict';
var recess = require('recess');
// need to fix recess.
(function(){
var RECESS = recess.Constructor;
recess.Constructor.prototype.compile = function(){
var that = this,
css;