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
| class ProjectNamePageController < BaseEmberCliDeployController | |
| def index | |
| render_page('index.html') | |
| end | |
| # This is a page that is needed in our application for integration with PicMonkey. | |
| # It is built in our ember-cli project and deployed alongside `index.html`. | |
| def picmonkey_done | |
| render_page('picmonkey-done.html') | |
| end |
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
| # Opens each model file alongside its corresponding spec file, even if the spec file doesn't yet exist. | |
| # Waits for you to close the files before loading the next pair. | |
| for i in app/models/**.rb; do | |
| mate -w $i ${${i/app/spec}/.rb/_spec.rb} | |
| done |
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
| <a href="https://www.ahalogy.com/publishers/"><img src="//badge.ahalogy.com/img/founding_eu_partner.png" title="Ahalogy Founding EU Partner" alt="Ahalogy Founding EU Partner"></a> |
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
| #!/bin/bash | |
| echo "describe cluster;" > /tmp/dc | |
| for i in {1..5}; do | |
| echo Attempt $i | |
| if cassandra-cli -f /tmp/dc 2>&1 | grep "Cluster Information"; then | |
| exit 0 | |
| else | |
| sudo service cassandra stop; sudo service cassandra start | |
| sleep 10 | |
| fi |
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
| java_script: | |
| config_file: .jshintrc |
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 RSVP.Promise(function(resolve, reject) { | |
| var fileReaders = fileNames.map(function(filename) { | |
| return readFile('dist/'+filename); | |
| }); | |
| RSVP.all(fileReaders).then(function(fileContents) { | |
| fileUploaders = fileContents.map(function(fileContents, fileIdx) { | |
| return this._uploadIfNotAlreadyInUploadList(uploadName, fileNames[fileIdx], fileContents); | |
| }); | |
| RSVP.all(fileUploaders).then(resolve).catch(reject); | |
| }); |
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
| tau.mashups | |
| .addModule('BoardClassOfServices.config', function() { | |
| 'use strict'; | |
| return { | |
| // type of background; if 'single', first match rule color will be applied as background, | |
| // if 'gradient', all colors from all found rules will be applied as gradient background */ | |
| colorType: 'gradient', // gradient | single |
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
| class Thing | |
| attr_accessor :failure_proc | |
| def when_it_fails(&block) | |
| self.failure_proc = block | |
| end | |
| def do_the_thing(args) | |
| rescue | |
| failure_proc.call if failure_proc |
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
| require 'time' | |
| class ContentSourcesGenerator | |
| HOUR = 3600 | |
| START_TS = Time.parse('2013-10-01 00:00:00 +00').utc | |
| END_TS = Time.parse('2015-01-01 00:00:00 +00').utc | |
| attr_accessor :values | |
| def each_client |
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
| @echo off | |
| cls | |
| :start | |
| echo. | |
| echo 1 Fine Arts | |
| echo 2 Classics | |
| echo 3 Computer Science | |
| echo 4 English | |
| echo 5 Mathematics | |
| echo 6 Modern World Languages and Culture |