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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name localhost; | |
#charset koi8-r; | |
#access_log /var/log/nginx/log/host.access.log main; | |
location / { | |
root /usr/share/nginx/html; | |
index index.html index.htm; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('app').filter 'round', () -> | |
(input, decimals) -> | |
return Math.round(input * Math.pow(10, decimals)) / Math.pow(10, decimals) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 user@123.45.56.78 "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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 {*} | |
*/ |
- TOC {:toc}
- Live side-by-side to component, not nested inside
.reel
b/c not everything has.reel
- Tests should eventually be moved to
.info
so they can be run by-component; should include both unit & E2E tests - Rename
.meta
toblueprint.mjson
, then moving into.info
dir, which contains metadata of component, only needed for Studio - Eventually would contain other
.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
NewerOlder