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 React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var Router = require('react-router-dom').BrowserRouter; | |
var App = require('./component/App'); | |
ReactDOM.render(<App />, document.getElementById('root')); |
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
ERROR in Entry module not found: Error: Can't resolve '/home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/app/Layout.js' in '/home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager' | |
resolve '/home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/app/Layout.js' in '/home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager' | |
using description file: /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/package.json (relative path: .) | |
Field 'browser' doesn't contain a valid alias configuration | |
after using description file: /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/package.json (relative path: .) | |
using description file: /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/package.json (relative path: ./app/Layout.js) | |
no extension | |
Field 'browser' doesn't contain a vali |
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
Directory Structure | |
├── app | |
│ ├── component | |
│ │ ├── App.js | |
│ │ └── SideBar.js | |
│ ├── index.js | |
│ └── pages | |
│ ├── Index.js | |
│ └── Layout.js | |
├── build |
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
//JOB | |
class BidRejectionEmailJob implements ShouldQueue | |
{ | |
use InteractsWithQueue, Queueable, SerializesModels; | |
private $bid = null; | |
/** | |
* Create a new job instance. | |
* | |
* @return void |
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
try { | |
\DB::beginTransaction(); | |
$service->a(); //FAILS HERE, THROWS ERROR REGARDING LOCK ON MY TABLE. | |
\DB::commit(); | |
} catch (\Exception $e) { | |
} finally { | |
\DB::rollback(); | |
} |
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
Table Employee Table Department | |
id, name department id, alias | |
1, Anh Hoang 1 1, Accounts | |
2, Anh Hoang 1 | |
3, Dean Clarke |
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->app->bind('FooBar', function($app) | |
{ | |
return new FooBar($app['SomethingElse']); | |
}); |
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
abstract class HistoryPageTextHelper | |
{ | |
const SERVICETIMEENTRY = array('ADD' => "{$user} logged {$prod_hour} hour and {$prod_minutes} minutes of Production Management Time and {$technical_hour} and {$technical_minutes} minutes of Technical Time for {$t_user} on the {$service}", | |
'DELETE' => "{$user} deleted {$prod_hour} hour and {prod_minutes} minutes of Production Management Time for {$t_user} on the {$service}"); | |
} |
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
$ sudo rm -rf node_modules && npm install --no-optional | |
> [email protected] install /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/node_modules/fsevents | |
> node-pre-gyp install --fallback-to-build | |
node-pre-gyp info it worked if it ends with ok | |
node-pre-gyp verb cli [ '/usr/local/bin/node', | |
node-pre-gyp verb cli '/home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/node_modules/fsevents/node_modules/.bin/node-pre-gyp', | |
node-pre-gyp verb cli 'install', | |
node-pre-gyp verb cli '--fallback-to-build' ] |
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
$ create-react-app com_oauthmanager | |
Creating a new React app in /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager. | |
Installing packages. This might take a couple minutes. | |
Installing react, react-dom, and react-scripts... | |
[ ...............] \ fetchMetadata: sill resolveWithNewModule [email protected] ch | |
> [email protected] install /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/node_modules/fsevents | |
> node-pre-gyp install --fallback-to-build |