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 Carbon\Carbon; | |
| /** | |
| * 全認証/認可サービスの登録 | |
| * | |
| * @return void | |
| */ | |
| public function boot() | |
| { | |
| $this->registerPolicies(); |
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
| package db | |
| import ( | |
| _ "github.com/go-sql-driver/mysql" | |
| "github.com/jinzhu/gorm" | |
| ) | |
| func ConnectGORM() *gorm.DB { | |
| DBMS := "mysql" | |
| USER := "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
| import React, { Component } from 'react' | |
| import { Link } from 'react-router-dom' | |
| import { connect } from 'react-redux' | |
| import { bindActionCreators } from 'redux' | |
| import * as myActions from '../actions/count' | |
| class AppComponent extends Component { | |
| render() { | |
| return ( | |
| <div> |
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 strict"; | |
| import Dnd from "./dnd" | |
| class App { | |
| static exec() { | |
| const obj = new App() | |
| obj.init() | |
| } |
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 = 3 | |
| print("id_3:%d, id_a:%d" % (id(3), id(a))) | |
| b = a | |
| print("id_b:%d" % id(b)) | |
| a += 1 | |
| print("id_3:%d, id_4:%d, id_a:%d, id_b:%d" % (id(3), id(4), id(a), id(b))) |
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
| import React, { Component } from 'react' | |
| import ReactDOM from 'react-dom'; | |
| import ReduxInfiniteScroll from 'redux-infinite-scroll' | |
| export default class ReduxInfiniteScrollEx extends ReduxInfiniteScroll { | |
| constructor(props) { | |
| super(props) | |
| this._pastLength = 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
| class Test | |
| @c_i_var = 0 | |
| @@c_var = 10 | |
| var = 'var' | |
| def initialize | |
| @i_var = 100 | |
| end | |
| def test |
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
| import React, { Component } from 'react' | |
| import { connect } from 'react-redux' | |
| import { bindActionCreators } from 'redux' | |
| import * as components from './components.jsx' | |
| import * as actions from './actions.jsx' | |
| import style from '../css/style.css' | |
| class DemoContainer extends Component { | |
| render() { | |
| const { demoA, demoB, actions } = this.props; |
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 PATH=$(brew --prefix openssl)/bin:$PATH |
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
| $ pip3 install greenlet |
NewerOlder