Skip to content

Instantly share code, notes, and snippets.

View rrichardson's full-sized avatar
💭
⚔️ Hacking Away

Rick Richardson rrichardson

💭
⚔️ Hacking Away
View GitHub Profile
"jest": {
"testEnvironment": "node",
"moduleFileExtensions": [
"js"
],
"coverageDirectory": "coverage",
"collectCoverageFrom": [
"src/*.js"
]
},
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let deviceTokenString = deviceToken.reduce("", {$0 + String(format: "%02x", $1)})
module.exports = {
entry: {
app: './modules/main.js',
},
output: {
filename: 'app.js',
path: path.resolve(__dirname, 'public/js'),
publicPath: '/js/',
},
module: {
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);
{
"coord": {
"lon": -73.95,
"lat": 40.74
},
"weather": [
{
"id": 800,
"main": "Clear",
"description": "clear sky",
#![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};
apiVersion: v1
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: traefik-ingress-lb
namespace: kube-system
labels:
k8s-app: traefik-ingress-lb
spec:
replicas: 3
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:
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)
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