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
| piotrs-mbp:xproject piotr$ RAILS_ENV=development rake app:setup:create_default_data | |
| Problem processing key 'host' in config/mailer.yml | |
| undefined method `host=' for ActionMailer::Base:Class | |
| Generating default data from default data ymls | |
| Updated default project |
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
| On branch dev-gh-pages | |
| Your branch is up-to-date with 'dev/gh-pages'. | |
| Changes not staged for commit: | |
| (use "git add <file>..." to update what will be committed) | |
| (use "git checkout -- <file>..." to discard changes in working directory) | |
| modified: air-pollution/javascripts/app.js.map | |
| modified: air-pollution/javascripts/vendor.js | |
| modified: air-pollution/javascripts/vendor.js.map |
This file has been truncated, but you can view the full file.
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
| diff --git a/air-pollution/javascripts/app.js.map b/air-pollution/javascripts/app.js.map | |
| index 4ae7e7c..e85b6fa 100644 | |
| --- a/air-pollution/javascripts/app.js.map | |
| +++ b/air-pollution/javascripts/app.js.map | |
| @@ -1 +1 @@ | |
| -{"version":3,"file":"public/javascripts/app.js","sources":["app/src/controls.coffee","app/src/main.coffee","app/src/model.coffee"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAAA;oCACE;;AAAA,kDAAgB,KAAhB;;AAAA,iCACA,QAAO;AACL,QAAG,IAAC,eAAJ;aACE,EAAE,WAAF,CAAc,CAAC,IAAf,GADF;KAAA;AAIE,UAAC,WAAD;AAAA,MACA,IAAC,cAAD,EADA;AAAA,MAEA,IAAC,aAAD,EAFA;AAAA,MAIA,EAAE,WAAF,CAAc,CAAC,IAAf,EAJA;aAKA,IAAC,eAAD,GAAkB,KATpB;KADK;EAAA,CADP;;AAAA,iCAaA,iBAAgB,IAbhB;;AAAA,iCAcA,aAAY;AACV;AAAA,QAAG,EAAE,gBAAF,CAAmB,CAAC,MAApB,KAA8B,CAAjC;AAAwC,aAAxC;KAAA;AAAA,IAKA,mBAAmB,SAAC,OAAD,EAAU,GAAV,EAAe,SAAf;AACjB;AAAA,eAAS,EAAG,MAAE,OAAL,CAAT;AAAA,MACA,MAAM,CAAC,MAAP,CAAc,2CAAd,CADA;aAEA,MAAM,CAAC,IAAP,CAAY,WAAZ,CAAwB,CAAC,KAAzB,CAA+B;AAC7B;AA |
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
| # This class implements two main functionalities: | |
| # 1. Checks if global interactive state is availble on page load and if so, | |
| # it posts 'interactiveLoadGlobal' to all interactives (iframes). | |
| # 2. When 'interactiveStateGlobal' message is received from any iframe, it: | |
| # 2.1. sends the state to LARA server | |
| # 2.2. posts 'interactiveLoadGlobal' message with a new state to all interactives | |
| # (except from sender of save message). | |
| class GlobalIframeSaver |
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
| <div id="bin-view"></div> | |
| <script> | |
| var MATERIALS = [ | |
| { | |
| category: "Cat A", | |
| children: [ | |
| { | |
| category: "Cat A1", | |
| children: [ |
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
| eploy@ip-10-187-42-151:/web/portal/current$ bundle exec rails console | |
| create | |
| create app/controllers | |
| create app/helpers | |
| create app/models | |
| create app/views/layouts | |
| create config/environments | |
| create config/initializers | |
| create config/locales | |
| create db |
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
| export default class PressureInteractive extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| properties: { | |
| temperature: 200 | |
| } | |
| outputs: { | |
| pressure: 0 | |
| } |
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
| main = do | |
| print $ (rpn "1 2 + 10 * 13 52 - 12 /") | |
| rpn :: (Read a, Fractional a) => String -> a | |
| rpn input = rpnProcess (words input) [] | |
| rpnProcess :: (Read a, Fractional a) => [String] -> [a] -> a | |
| rpnProcess [] stack = head stack | |
| rpnProcess (x:inputTail) stack = if x `elem` ["+", "-", "*", "/"] then | |
| rpnProcess inputTail (action x stack) |
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
| // Load font file to string. | |
| import fontDef from 'raw!three/examples/fonts/helvetiker_regular.typeface.js'; | |
| // Load font in a sync way, using webpack raw-loader. Based on async THREE JS loader: | |
| // https://github.com/mrdoob/three.js/blob/ddab1fda4fd1e21babf65aa454fc0fe15bfabc33/src/loaders/FontLoader.js#L20 | |
| let font = new THREE.Font(JSON.parse(fontDef.substring(65, fontDef.length - 2))); | |
| let geometry = new THREE.TextGeometry(txt, { | |
| size: 50000000 * c.SF, | |
| height: 1000000 * c.SF, | |
| font: font |
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
| Around 35ms in total: | |
| Started GET "/portal/students/5/status.json" for 127.0.0.1 at 2016-02-25 17:22:59 -0800 | |
| Processing by Portal::StudentsController#status as JSON | |
| Parameters: {"id"=>"5"} | |
| User Load (1.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 14 AND (`users`.`state` NOT IN ('disabled')) LIMIT 1 | |
| Portal::Teacher Load (1.0ms) SELECT `portal_teachers`.* FROM `portal_teachers` WHERE `portal_teachers`.`user_id` = 14 LIMIT 1 | |
| Portal::Student Load (1.0ms) SELECT `portal_students`.* FROM `portal_students` WHERE `portal_students`.`user_id` = 14 LIMIT 1 | |
| Portal::Student Load (1.0ms) SELECT `portal_students`.* FROM `portal_students` WHERE `portal_students`.`id` = 5 LIMIT 1 | |
| Report::Learner Load (1.1ms) SELECT `report_learners`.* FROM `report_learners` WHERE `report_learners`.`student_id` = 5 |