An easy-to-use platform for EEG experimentation in the classroom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Minor tweaks

jdpigeon df62ad4c 288f486e

+18 -4
+1
app/.eslintrc
··· 17 17 "flowtype/union-intersection-spacing": ["error", "always"], 18 18 "flowtype/use-flow-type": "error", 19 19 "flowtype/valid-syntax": "error", 20 + "react/no-will-update-set-state": "warn", 20 21 "dot-notation": "off", 21 22 "linebreak-style": 0, 22 23 "import/prefer-default-export": 0
+10 -2
app/utils/filesystem/storage.js
··· 157 157 export const readImages = (dir: string) => 158 158 fs.readdirSync(dir).filter(filename => { 159 159 const extension = filename.slice(-3); 160 - return extension === 'png' || extension === 'jpg' || extension === 'gif'; 160 + return ( 161 + extension === 'png' || 162 + extension === 'jpg' || 163 + extension === 'gif' || 164 + extension === 'peg' // support .jpeg? 165 + ); 161 166 }); 162 167 163 168 // ----------------------------------------------------------------------------------------------- 164 169 // Util 165 170 166 - export const getSubjectNamesFromFiles = (filePaths: Array<?string>) => filePaths.map(filePath => path.basename(filePath)).map(fileName => fileName.substring(0, fileName.indexOf('-'))) 171 + export const getSubjectNamesFromFiles = (filePaths: Array<?string>) => 172 + filePaths 173 + .map(filePath => path.basename(filePath)) 174 + .map(fileName => fileName.substring(0, fileName.indexOf('-')));
+7 -2
app/utils/jspsych/timelines/n170.js
··· 19 19 intro: 20 20 'You will view a series of faces and houses. Press 1 when a face appears and 9 for a house. Press any key to continue', 21 21 showProgressBar: false, 22 - stimulus1: { dir: facesDir, title: 'Face', type: EVENTS.FACE, response: '1' }, 22 + stimulus1: { 23 + dir: facesDir, 24 + title: 'Face', 25 + type: EVENTS.FACE, 26 + response: '1' 27 + }, 23 28 stimulus2: { 24 29 dir: housesDir, 25 30 title: 'House', ··· 37 42 end: { 38 43 id: 'end', 39 44 type: 'callback-html-display', 40 - stimulus: 'Thanks for participating', 45 + stimulus: 'Thanks for participating. Press any key to continue', 41 46 response_ends_trial: true, 42 47 post_trial_gap: 500 43 48 }