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 Modifier from 'ember-modifier'; | |
import { registerDestructor } from "@ember/destroyable"; | |
import {service} from "@ember/service"; | |
import {action} from "@ember/object"; | |
function createDeferred() { | |
let resolve, reject; | |
const promise = new Promise((res, rej) => { | |
resolve = res; | |
reject = rej; |
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
use std::collections::HashMap; | |
use std::sync::Arc; | |
use std::sync::Mutex; | |
use tokio::sync::{mpsc, watch}; | |
use tokio::sync::RwLock; | |
use tonic::{Code, Request, Response, Status}; | |
use def::health_check_response::ServingStatus; | |
use def::health_server; | |
use def::{HealthCheckRequest, HealthCheckResponse}; |
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 | |
$pdo = new PDO('mysql:dbname=floattest;host=127.0.0.1', 'root', ''); | |
$create = $pdo->prepare('CREATE TABLE IF NOT EXISTS tbl (val DECIMAL(9,2))'); | |
$create->execute(); | |
$del = $pdo->prepare('DELETE FROM tbl'); | |
$del->execute(); | |
$ins = $pdo->prepare('INSERT INTO tbl (val) VALUES (?)'); |
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
FROM ubuntu:18.04 | |
RUN apt-get update && apt-get install -y \ | |
openssl libcurl4-openssl-dev libssl-dev libengine-pkcs11-openssl \ | |
curl libcurl4 \ | |
git automake libtool pkg-config wget \ | |
libccid libpcsclite1 pcscd usbutils opensc | |
RUN git clone https://github.com/mtrojnar/osslsigncode |
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 Psr\Http\Middleware; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ResponseInterface; | |
interface AfterMiddlewareInterface | |
{ | |
public function after(RequestInterface $request, ResponseInterface $response, callable $next); |
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 Psr\Http\Middleware; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ResponseInterface; | |
interface AfterMiddlewareInterface | |
{ | |
public function after(RequestInterface $request, ResponseInterface $response, callable $next); |
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 Omnipay\Common; | |
class Money { | |
private $value; | |
private $currencyCode; | |
private function __construct ($value, $currencyCode) { | |
$this->value = $value; |
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 Omnipay\Common; | |
class Money { | |
private $value; | |
private function __construct ($value) { | |
$this->value = $value; | |
} |
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 Ember from "ember"; | |
var RSVP = Ember.RSVP; | |
export default function () { | |
if (!this.newElement) { | |
return RSVP.resolve(); | |
} else if (!this.oldElement) { | |
this.newElement.css({visibility: ''}); | |
return RSVP.resolve(); | |
} |
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 Ember from "ember"; | |
var RSVP = Ember.RSVP; | |
export default function () { | |
if (!this.newElement) { | |
return RSVP.resolve(); | |
} else if (!this.oldElement) { | |
this.newElement.css({visibility: ''}); | |
return RSVP.resolve(); | |
} |
NewerOlder