Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
FROM ruby:2.3.4 | |
MAINTAINER Sharetribe Team <[email protected]> | |
ENV REFRESHED_AT 2016-11-08 | |
RUN apt-get update \ | |
&& apt-get dist-upgrade -y | |
# |
def create_peaks(a) | |
peaks = [false] | |
(1..a.size - 2).each do |i| | |
if a[i] > a[i - 1] && a[i] > a[i + 1] | |
peaks << true | |
else | |
peaks << false | |
end | |
end | |
peaks |
"Angular Filter": { | |
"prefix": "ng1filter", | |
"body": [ | |
"angular", | |
"\t.module('app')", | |
"\t.filter('${filterName}', ${filterName});", | |
"\t", | |
"\tfunction ${filterName}() {", | |
"\t\treturn function(input) {", | |
"\t\t\tif (${formatCondition}) {", |
"Angular Component": { | |
"prefix": "ng1component", | |
"body": [ | |
"(function() {", | |
"\t'use strict';", | |
"\t// Usage:", | |
"\t//", | |
"\t// Creates:", | |
"\t//", | |
"", |
did it work???
I'm not sure this worked...
did it work????
# This is a skeleton for testing models including examples of validations, callbacks, | |
# scopes, instance & class methods, associations, and more. | |
# Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
# | |
# I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
# so if you have any, please share! | |
# | |
# @kyletcarlson | |
# | |
# This skeleton also assumes you're using the following gems: |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |