This file contains hidden or 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
| // I can't figure out how to add custom text to the `payload` variable above. | |
| // I've tried: | |
| var accessRequest = "The following user wants to join WADE:" + contactHow | |
| var payload = { | |
| channel: "#botspam", | |
| username: "recruitbot", | |
| text: accessRequest, | |
| icon_emoji: ":raised_hands::skin-tone-4:" | |
| }; | |
| var options = { |
This file contains hidden or 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
| return gulp.src([__dirname + '/../lib/**/!(*spec).js']) | |
| .pipe(plugins.istanbul({ includeUntested: true })) | |
| .pipe(plugins.istanbul.hookRequire()) | |
| .on('finish', function () { | |
| return gulp.src([__dirname + '/../lib/**/*spec.js'], { read: false }) | |
| .pipe(plugins.mocha({ | |
| reporter: 'spec', | |
| coverageFolder: 'coverage/backend' | |
| })) | |
| .pipe(plugins.istanbul.writeReports({ |
This file contains hidden or 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
| var http = require('http'); | |
| var server = http.createServer(function(req, res) { | |
| if (req.url === '/foo') | |
| res.write('<h1>FOO!</h1>'); | |
| res.end(); | |
| }); | |
| server.listen(8001) |
This file contains hidden or 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
| 'use strict'; | |
| import bar from './module/bar'; | |
| class Foo { | |
| constructor(baz) { | |
| this.baz = baz; | |
| } | |
| bar: bar(this) |
This file contains hidden or 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
| <!-- build:js /dist/vendor.js --> | |
| <script src="/vendor/fastclick/fastclick.js"></script> | |
| <script src="/app/underscroll.js"></script> | |
| <script src="/vendor/d3/d3.min.js"></script> | |
| <script src="/vendor/crossfilter/crossfilter.min.js"></script> | |
| <script src="/vendor/jquery/dist/jquery.min.js"></script> | |
| <script src="/vendor/angular/angular.js"></script> | |
| <script src="/vendor/angular-sanitize/angular-sanitize.js"></script> | |
| <script src="/vendor/angular-cookies/angular-cookies.min.js"></script> | |
| <script src="/vendor/angular-scroll/angular-scroll.js"></script> |
This file contains hidden or 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
| Request({ | |
| uri: uri, | |
| json: params.format ? false : true, | |
| timeout: app.config.timeout | |
| }, function(error, response, body) { | |
| if (error) { | |
| return onError(error); | |
| } |
This file contains hidden or 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
| (Array.apply(null, new Array(size - (''+number).length)).map(function(i) { return '0'; }).join('')) + ''+number; |
This file contains hidden or 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
| return (new Array(size - (''+number).length).map(function(i) { return '0'; }).join('')) + ''+number; |
This file contains hidden or 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
| model.storageObject = {}; | |
| _.each(dataArray, function(item) { | |
| if (!model.storageObject[item.key]) { | |
| model.storageObject[item.key] = []; | |
| } | |
| model.storageObject[item.key].push(item); | |
| }); |
This file contains hidden or 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
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-header-panel/core-header-panel.html"> | |
| <link rel="import" href="../paper-input/paper-input.html"> | |
| <link rel="import" href="../paper-button/paper-button.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> |