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
(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) |
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
(ns sherpa.client.quad-tree | |
(:refer-clojure :exclude [node children]) | |
(:use [sherpa.client.util :only [log uuid]])) | |
; ;======================================================================================== | |
; ; Node | |
; ;======================================================================================== | |
(def TOP_LEFT 0) |
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
## 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. |
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
/* | |
* 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. | |
* |
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
#!/usr/bin/ruby | |
class Utilities | |
@@cycle = nil | |
def self.cycle(a,b) | |
@@cycle == a ? @@cycle = b : @@cycle = a | |
end | |
end | |
start = Time.now |
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
/* | |
* 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; |
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
/* | |
* 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. |
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
/* | |
* 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 |
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
/* | |
* 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. |
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
import java.lang.Object.*; | |
class BaseNode{ | |
int cx; | |
int cy; | |
int px; | |
int py; | |
int x; | |
int y; |