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
| bartsmykla | |
| bart | |
| martindekov | |
| alex |
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 std::time; | |
| pub fn init() { | |
| println!(); | |
| println!("------------------------"); | |
| println!(); | |
| let my_machine = Machine {}; | |
| } |
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
| fn read_file(path: &str) -> Result<String, Error> { | |
| let mut f = match File::open(path) { | |
| Ok(file) => file, | |
| Err(e) => { | |
| return Err(e) | |
| } | |
| }; | |
| let mut content = String::new(); |
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 UserPanelView extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| rodzaj_konta : 0, | |
| typ_abonamentu : "", | |
| okres : "", | |
| data_konca : "", | |
| max_ilosc_dostepow : "", | |
| wykorzystano_ilosc_dostepow : "", |
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
| const helpers = require('../helpers'); | |
| const { root } = helpers; | |
| module.exports = { | |
| resolve: { | |
| extensions: ['.jsx', '.js'], | |
| modules: [root('src'), 'node_modules'], | |
| alias: { | |
| react: root('./node_modules/react'), |
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
| const webpackConfig = require('./config/webpack/karma.webpack'); | |
| require('phantomjs-prebuilt').path = './node_modules/.bin/phantomjs'; | |
| module.exports = function(config) { | |
| config.set({ | |
| devtool: 'inline-source-map', | |
| basePath: '', | |
| frameworks: ['mocha', 'chai-as-promised', 'chai', 'sinon'], | |
| files: ['config/webpack/specs.webpack.js', 'node_modules/babel-polyfill/dist/polyfill.js'], |