This file contains 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, { PropTypes } from 'react'; | |
import { connect } from 'react-redux'; | |
import { initializeSocket } from './redux/socket.js'; | |
class App extends React.Component { | |
static propTypes = { | |
dispatch: PropTypes.func.isRequired, | |
socket: PropTypes.object.isRequired, | |
}; | |
This file contains 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 * as Rx from 'rxjs'; | |
import queryString from 'query-string'; | |
/** | |
* This function simply transforms any actions into an array of actions | |
* This enables us to use the synthax Observable.of(...actions) | |
* If an array is passed to this function it will be returned automatically instead | |
* Example: mapObservables({ type: ACTION_1 }) -> will return: [{ type: ACTION_1 }] | |
* Example2: mapObservables([{ type: ACTION_1 }, { type: ACTION_2 }]) -> will return: [{ type: ACTION_1 }, { type: ACTION_2 }] | |
*/ |
This file contains 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
<?php | |
declare(strict_types=1); | |
use DI\Container; | |
use Psr\Http\Message\ResponseFactoryInterface; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Psr\Http\Server\MiddlewareInterface; | |
use Psr\Http\Server\RequestHandlerInterface; | |
use Slim\Factory\AppFactory; |
This file contains 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
<?php | |
namespace Application\Middleware; | |
use PDO; | |
use Psr\Log\LoggerInterface; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Psr\Http\Server\MiddlewareInterface; |
This file contains 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
<?php | |
declare(strict_types = 1); | |
use Psr\Http\Message\ServerRequestInterface; | |
use Slim\Exception\HttpInternalServerErrorException; | |
use Slim\ResponseEmitter; | |
class ShutdownHandler | |
{ | |
private ServerRequestInterface $request = null; |
This file contains 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 com.ss.sys.ces.d; | |
import android.content.Context; | |
import com.ss.sys.ces.utils.NetInterface; | |
import java.io.IOException; | |
import java.security.SecureRandom; | |
import java.security.cert.X509Certificate; | |
import java.util.concurrent.TimeUnit; | |
import javax.net.ssl.HostnameVerifier; | |
import javax.net.ssl.SSLContext; |
This file contains 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
public String a(String arg12) { | |
byte[] v12; | |
if(c.a == 0) { | |
return "1"; | |
} | |
try { | |
f.a(b.a, "last report", Long.valueOf(Calendar.getInstance().getTimeInMillis())); | |
v12 = a.rb(b.a, arg12, null); | |
} |
This file contains 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
type IGenericType interface { | |
GetName() string | |
} | |
type GenericTypeRepository struct { | |
NativeType IGenericType | |
} | |
func (r *GenericTypeRepository) FindAll() (*[]IGenericType, error) { | |
var types []r.NativeType |
This file contains 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 main | |
type Foo interface { | |
methodA() string | |
} | |
type Bar struct { | |
Foo | |
} |
This file contains 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
version: "3.7" | |
networks: | |
load-balancer-network: | |
external: true | |
client-network: | |
name: client-network | |
services: |
NewerOlder