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
"jest": { | |
"testEnvironment": "node", | |
"moduleFileExtensions": [ | |
"js" | |
], | |
"coverageDirectory": "coverage", | |
"collectCoverageFrom": [ | |
"src/*.js" | |
] | |
}, |
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
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { | |
let deviceTokenString = deviceToken.reduce("", {$0 + String(format: "%02x", $1)}) |
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
module.exports = { | |
entry: { | |
app: './modules/main.js', | |
}, | |
output: { | |
filename: 'app.js', | |
path: path.resolve(__dirname, 'public/js'), | |
publicPath: '/js/', | |
}, | |
module: { |
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
PIXI = require("pixi.js"); | |
var quadratic = require('adaptive-quadratic-curve') | |
require('zepto') | |
$ = window.Zepto; | |
var spoint = [20, 20], c1 = [100, 159], epoint = [200, 20], scale = 2; | |
var points = quadratic(spoint, c1, epoint, scale); |
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
{ | |
"coord": { | |
"lon": -73.95, | |
"lat": 40.74 | |
}, | |
"weather": [ | |
{ | |
"id": 800, | |
"main": "Clear", | |
"description": "clear sky", |
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
#![feature(conservative_impl_trait)] | |
extern crate futures; | |
extern crate tokio_core; | |
use std::env; | |
use std::io; | |
use std::net::SocketAddr; | |
use futures::{Future, Poll, Async}; | |
use futures::stream::Stream; | |
use tokio_core::io::{copy, Io, read_exact, WriteHalf}; |
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
apiVersion: v1 | |
kind: Deployment | |
apiVersion: extensions/v1beta1 | |
metadata: | |
name: traefik-ingress-lb | |
namespace: kube-system | |
labels: | |
k8s-app: traefik-ingress-lb | |
spec: | |
replicas: 3 |
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
Name: nginx-ingress-controller-njj4o | |
Namespace: kube-system | |
Node: ip-10-111-0-157.ec2.internal/10.111.0.157 | |
Start Time: Fri, 30 Sep 2016 18:48:36 +0000 | |
Labels: name=nginx-ingress-controller | |
Status: Running | |
IP: 10.112.80.11 | |
Controllers: DaemonSet/nginx-ingress-controller | |
Containers: | |
nginx-ingress: |
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
trait impl | |
https://github.com/rrichardson/tokio-core/blob/master/src/net/mod.rs#L27-L41 | |
trait impl that uses the above traits: | |
https://github.com/rrichardson/tokio-core/blob/master/src/net/udp_stream.rs#L25 | |
to satisfy this trait: | |
http://alexcrichton.com/futures-rs/futures/stream/trait.Stream.html (specifically the poll function) |
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
32374:20160906:221316.145 In send_list_of_active_checks_json() | |
32374:20160906:221316.145 In get_hostid_by_host() host:'ip-10-33-1-114.ec2.internal' | |
32374:20160906:221316.145 query [txnlev:0] [select hostid,status,tls_accept,tls_issuer,tls_subject,tls_psk_identity from hosts where host='ip-10-33-1-114.ec2.internal' and status in (0,1) and flags<>2 and proxy_hostid is null] | |
32374:20160906:221316.146 End of get_hostid_by_host():SUCCEED |