I hereby claim:
- I am lissy93 on github.
- I am aliciasykes (https://keybase.io/aliciasykes) on keybase.
- I have a public key ASBfI454lYDXt78y3STYeJn9rCbjj0rKEttcrS_Rg2qX9go
To claim this, I am signing this object:
/** | |
* Created by alicia.sykes on 17/07/2015. | |
* To run script run "gulp" in the command line | |
* To just watch files run "gulp watch" | |
* To just clean the public directory run "gulp clean" | |
*/ | |
/* Include the necessary modules */ | |
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); // For logging stats and warnings |
I hereby claim:
To claim this, I am signing this object:
Verifying my Blockstack ID is secured with the address 1NWgGVfEt2cvAV8uAVrPnVJysmubfXskuS https://explorer.blockstack.org/address/1NWgGVfEt2cvAV8uAVrPnVJysmubfXskuS |
/** | |
* Copyright Alicia Sykes <https://aliciasykes.com> | |
* Licensed under MIT X11: https://git.io/Jew4i | |
* | |
* Converts a given JSON object into an array | |
* Where { key: 'Value' } --> ['key': 'value'] | |
* @param json - the object to be converted | |
*/ | |
const json2array = (json) => { |
// Copyright Alicia Sykes <https://aliciasykes.com>. Licensed under MIT X11: https://git.io/Jew4i | |
import { binding, when } from "cucumber-tsflow"; | |
import { browser, by, element, protractor } from "protractor"; | |
import { expect } from "chai"; | |
import { Config } from "../utils/config"; | |
import { DomUtil } from "../utils/domUtil"; | |
@binding() | |
class AccessibilitySteps { |
/** | |
* Copyright Alicia Sykes <https://aliciasykes.com> | |
* Licensed under MIT X11: https://git.io/Jew4i | |
* | |
* Constructs an enumeration with keys equal to their value. | |
* @param {object} obj | |
* @return {object} | |
*/ | |
export function keyMirror(originObj: object) { | |
if (typeof originObj !== 'object') |
/** | |
* A function that generates a unique ID | |
* Made up of N random characters, N numbers from end of timestamp, and shuffled using Math.random | |
*/ | |
export default (totalLen: number = 5) => { | |
// 1. Generate Random Characters | |
const letters = (len: number, str: string = ''): string => { | |
const newStr = () => | |
String.fromCharCode(65 + Math.floor(Math.random() * 26)); | |
return len <= 1 ? str : str + letters(len - 1, str + newStr()); |
# The mouse pointer will move around its current position on the screen, i.e. around any position | |
# on the screen where you place the pointer. However, if you prefer it to move around the centre | |
# of the screen then change mousemove_relative to mousemove in the xdotool command below. | |
# LENGTH is the amount of px the mouse will move | |
# 0 = not moving at all, 1 = tiny movement, 100 = giant movement | |
LENGTH=50 | |
# DELAY os the number of seconds, between movements | |
DELAY=5 |
''' | |
Date : 22 Oct 2012 | |
@author : Alicia Sykes | |
''' | |
#Remove Bad Characters | |
def validate(cardNumber): | |
validCardNumber = "" | |
for number in cardNumber: | |
if (ord(number)>=48 and ord(number)<=57): validCardNumber += str(number) |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: