Created by Matthew, Daniel, Corey and Ray during JS Study Group: Algorithms.
Converts numbers to and from roman numerals, up to 3999.
There are more mathmetical solutions to the problem but this works.
/** | |
* loop through flattened array and return whole object or value to specified key | |
* e.g. array: [{"idKey": 1, "otherKey": "hello"}, | |
* {"idKey": 2, "otherKey": "world"}] | |
* @param arr | |
* @param key search for this key | |
* @param value match searched key's value to desired value | |
* @param {string=} keyToReturn return value of this key | |
* @returns {*} | |
*/ |
angular.module('app').filter 'round', () -> | |
(input, decimals) -> | |
return Math.round(input * Math.pow(10, decimals)) / Math.pow(10, decimals) |
Created by Matthew, Daniel, Corey and Ray during JS Study Group: Algorithms.
Converts numbers to and from roman numerals, up to 3999.
There are more mathmetical solutions to the problem but this works.
mkdir ~/travis-ci-key && cd ~/travis-ci-key | |
# generate your private key | |
ssh-keygen -t rsa -f travis-ci-key | |
# put the public key on the server you will be connecting to | |
cat travis-ci-key.pub | ssh [email protected] "cat >> ~/.ssh/authorized_keys" | |
# generate the password/secret you will store encrypted in the .travis.yml and use to encrypt your private key | |
cat /dev/urandom | head -c 10000 | openssl sha1 > ./secret |
I hereby claim:
To claim this, I am signing this object:
# set with git config --global tag.sort version:refname | |
# writes to: | |
# C:\Users\MyLogin | |
# ~/.gitconfig | |
# git config --global tag.sort version:refname | |
# sorts git tag output smartly since git 2.0 |
This style guide includes recommended practices for consistency. If any of the rules conflicts with readability in a particular case, ignore the rules and chose readability.
.reel
b/c not everything has .reel
.info
so they can be run by-component; should include both unit & E2E tests.meta
to blueprint.mjson
, then moving into .info
dir, which contains metadata of component, only needed for Studio.mjson
files, which would contain serialization that serve other purposes other than blueprint, e.g. paths for flow.reel or animation specs, can be used in other serialization