I hereby claim:
- I am dimfeld on github.
- I am dimfeld (https://keybase.io/dimfeld) on keybase.
- I have a public key whose fingerprint is 2814 2D19 F06B 2C7D 752B F055 4CC5 2454 DC43 1235
To claim this, I am signing this object:
input length = 60; | |
def xx = -GetEventOffset(Events.EARNINGS); | |
def yy = Sum(HasEarnings(type = EarningTime.AFTER_MARKET), length)[-length + 1] > 0; | |
plot x = xx + yy * .5; | |
x.AssignValueColor( if x <= 1 then Color.LIGHT_RED else Color.DARK_GRAY); |
use actix_service::{Service, Transform}; | |
use actix_web::{dev::ServiceRequest, dev::ServiceResponse, Error}; | |
use futures::future::{ok, FutureResult}; | |
use futures::{Future, Poll}; | |
use slog::info; | |
// There are two step in middleware processing. | |
// 1. Middleware initialization, middleware factory get called with | |
// next service in chain as parameter. | |
// 2. Middleware's call method get called with normal request. |
import { abc } from './redundant_export'; | |
abc(1, 2, 3); |
#!/bin/bash | |
# Run ssh and then disable mouse reporting. This is so that mouse scrolling | |
# will work properly in the local session if a tmux session drops. | |
/usr/bin/ssh "$@" | |
EXITCODE=$? | |
if tty -s; then | |
printf '\e[?1000l' | |
fi |
/* | |
Go's Cap'n Proto code generator needs some extra directives, but I don't want to require that | |
my Rust build environment has the relevant Go include files available. The script below filters | |
out the Go directives before sending the resulting files to the compiler to make this work. | |
*/ | |
extern crate capnpc; | |
use std::env; | |
use std::path::PathBuf; |
#!/usr/bin/env node | |
"use strict"; | |
var fs = require("fs"); | |
var vm = require("vm"); | |
var sandbox = { value: null }; | |
var context = vm.createContext(sandbox); | |
function convert(contents) { | |
vm.runInContext('value = ' + contents, context); |
// DO NOT EDIT! | |
// Code generated by ffjson <https://github.com/pquerna/ffjson> | |
// DO NOT EDIT! | |
package main | |
import ( | |
importedinceptionpackage "bitbucket.org/freshmedicalleads/datafuse/writer" | |
"bitbucket.org/freshmedicalleads/datafuse/vendor/github.com/pquerna/ffjson/inception" | |
// "github.com/pquerna/ffjson/inception" |
/* | |
* Copyright 2015 Databricks, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may | |
* not use this file except in compliance with the License. You may obtain | |
* a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python | |
import sys | |
import os | |
import os.path | |
import argparse | |
import json | |
import linode.api | |
key = None |