Skip to content

Instantly share code, notes, and snippets.

View ghostandthemachine's full-sized avatar

Jon Rose ghostandthemachine

  • Origin Rose
  • Boulder, Colorado
View GitHub Profile
(ns ai.core
(:require [clojure.core.async :as async :refer [<! >! <!! timeout chan alt! go]]))
;; Helper functions
(defn log
"Log function. Takes base and a value."
[b v]
(/ (Math/log v)
(ns sherpa.client.quad-tree
(:refer-clojure :exclude [node children])
(:use [sherpa.client.util :only [log uuid]]))
; ;========================================================================================
; ; Node
; ;========================================================================================
(def TOP_LEFT 0)
## I want to add a column in the event table that will store the google calendar event id. So far I found the event.rb and I added the correct column.
## i'm assuming something like this
## event.rb
class Event
property :google_calendar_event_id, String
end
## What I need to figure out is how to query the event table for a given event id and then once I return a valid event, I need to be able to add the google calendar event id.
/*
* 11/01/2004
*
* SearchToolBar.java - Toolbar used by RText for quick searching.
* Copyright (C) 2004 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://rtext.fifesoft.com
*
* This file is a part of RText.
*
#!/usr/bin/ruby
class Utilities
@@cycle = nil
def self.cycle(a,b)
@@cycle == a ? @@cycle = b : @@cycle = a
end
end
start = Time.now
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ofvisual.node;
import org.netbeans.api.visual.action.*;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
/*
* The contents of this file are subject to the terms of the Common Development
* and Distribution License (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at http://www.netbeans.org/cddl.html
* or http://www.netbeans.org/cddl.txt.
*
* When distributing Covered Code, include this CDDL Header Notice in each file
* and include the License file at http://www.netbeans.org/cddl.txt.
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2009 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (collectively, the
* "License"). You may not use this file except in compliance with the
* License. You can obtain a copy of the License at
/*
* The contents of this file are subject to the terms of the Common Development
* and Distribution License (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at http://www.netbeans.org/cddl.html
* or http://www.netbeans.org/cddl.txt.
*
* When distributing Covered Code, include this CDDL Header Notice in each file
* and include the License file at http://www.netbeans.org/cddl.txt.
import java.lang.Object.*;
class BaseNode{
int cx;
int cy;
int px;
int py;
int x;
int y;