Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"time"
"golang.org/x/net/context"
"github.com/coreos/etcd/clientv3"
"github.com/opentracing/opentracing-go"
@bg451
bg451 / recorder.go
Created March 5, 2016 18:44
basictracer recorder impl for Appdash
import (
"fmt"
basictracer "github.com/opentracing/basictracer-go"
"sourcegraph.com/sourcegraph/appdash"
)
type Recorder struct {
collector appdash.Collector
}
function errorCheck(form) {\
if (form.firstName.value == "") {
errorReport("firstName", "is empty")
}
if (form.lastName.value == "") {
errorReport("lastName", "is empty")
}
var email_re = /[A-Z0-9._]+@[A-Z0-9.]+\.[A-Z]{2,}/
if (!email_re.exec(form.emailAddress.value)){
$$ t_1^H = \Bigg(-\frac{1}{\lambda}\log{\bigg( \sum_{n=1}^{n} \Big(\frac{e^{\lambda(t_j^L-1)^\beta}}{(1 + \rho)^n} \Big) - \sum_{i=2}^{m} \Big(\frac{e^{- \lambda(t_i^H-1)^\beta}}{(1 + \rho)^n} \Big) \bigg)\Bigg)^\frac{1}{\beta}} + 1$$
<html>
<!--
CS 164 Fall 2013
Generic home page
Name: Elias Brandon Gonzalez
Date: October 7, 2015
-->
<head>
@bg451
bg451 / Vagrantfile
Last active September 29, 2015 05:32
# -*- mode: ruby -*-
# vi: set ft=ruby :
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# Place this Vagrantfile in your src folder and run:
#
# vagrant up
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
public class ToDoList extends JApplet implements KeyListener
{
int loc = 1;
boolean laundryColor = false;
boolean groceryStore = false;