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:
/** | |
* 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 |
/** | |
* 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) => { |
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 | |
* | |
* Constructs an enumeration with keys equal to their value. | |
* @param {object} obj | |
* @return {object} | |
*/ | |
export function keyMirror(originObj: object) { | |
if (typeof originObj !== 'object') |
[ | |
{ | |
"tla":"ABR", | |
"name":"Abbey Road" | |
}, | |
{ | |
"tla":"ACT", | |
"name":"Acton Town" | |
}, | |
{ |
I hereby claim:
To claim this, I am signing this object:
// Include the sa module, needs installing first (npm install sentiment-analysis) | |
const sentimentAnalysis = require('sentiment-analysis'); | |
/** | |
* Gets the sentiment of a sentence | |
* using the sentiment-analysis module | |
* formats it, and prints to console | |
*/ | |
function displaySentiment(inputText, sentimentScore){ |
// 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 { |