This file contains 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
(objc:load-framework "SceneKit" :scenekit) | |
(defpackage :scenekit-demo) | |
(in-package :scenekit-demo) | |
(defun make-scenekit-view (window) | |
(let* ((view (#/alloc ns:s-c-n-view)) | |
(scene (#/scene ns:s-c-n-scene)) | |
;;; for some reason #/rootNode is unbound, but this works: |
This file contains 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
(defpackage :opengl-gears-demo) | |
(in-package :opengl-gears-demo) | |
(require 'cl-opengl) | |
(require 'cl-glu) | |
;;; needed to run at full resolution in Retina display | |
(objc:defmethod (#/setWantsBestResolutionOpenGLSurface: :void) | |
((self ns:ns-object) (value :<BOOL>))) |
This file contains 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
(defpackage :color-triangle-demo) | |
(in-package :color-triangle-demo) | |
(require 'cl-opengl) | |
(require 'cl-glu) | |
;;; needed to run at full resolution in Retina display | |
(objc:defmethod (#/setWantsBestResolutionOpenGLSurface: :void) | |
((self ns:ns-object) (value :<BOOL>))) |
This file contains 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
(in-package :asdf) | |
(defsystem :dl4j :defsystem-depends-on (:abcl-asdf) | |
:components ((:mvn "org.deeplearning4j/deeplearning4j-core" :version "0.8.0") | |
(:mvn "org.nd4j/nd4j-native" :version "0.8.0"))) | |
(asdf:load-system :dl4j) | |
(in-package :jss) |
This file contains 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 numpy as np | |
from scipy.special import gamma | |
from scipy.stats import norm | |
from affine import Affine | |
# WSEG-10 fallout model as described in Dan W. Hanifen, "Documentation and Analysis | |
# of the WSEG-10 Fallout Prediction Model," Thesis, Air Force Institute of Technology, | |
# March 1980. | |
class WSEG10: |
This file contains 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
(defpackage sudoku | |
(:use #:cl #:iterate)) | |
(in-package #:sudoku) | |
(defun sd-block (n l) | |
(let ((start (nth n '(0 3 6 27 30 33 54 57 60)))) ; lookup is faster | |
(iter (for b on (nthcdr start l) by #'(lambda (p) (nthcdr 9 p))) | |
(for line from 1 to 3) | |
(appending (subseq b 0 3))))) |
This file contains 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
************************************************************************** | |
* * | |
* RAINOUT MODEL * | |
* * | |
* This program computes the maximum dose rate. in Rads per hour, * | |
* produced by a nuclear air burst. The nuclear cloud is washed out by a * | |
* simulated rain storm at a specified time t of cloud washout. The * | |
* activity grounded as a result of the radioactive cloud washout, * | |
* A(x,y,t), is used to compute the dose rate. This program will accomo- * | |
* date changes in the following Input parameters: particle size dist- * |
This file contains 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
class Dungeon < Formula | |
desc "the classic text adventure" | |
homepage "https://github.com/GOFAI/dungeon" | |
url "https://github.com/GOFAI/dungeon/archive/4.0.tar.gz" | |
sha256 "be2217be9e23861f22c14c4395da272fca5fb08a1741f52fd393792908279bea" | |
depends_on :fortran | |
def install | |
chdir "src" do |
This file contains 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
# -*- mode: GNUmakefile; indent-tabs-mode: t -*- | |
# Cleaned up by Shinmera October 13, 2015 | |
export CLASP_HOME := $(or $(wildcard $(CLASP_HOME)),\ | |
$(shell pwd)) | |
include $(wildcard $(CLASP_HOME)/local.config) | |
export PJOBS ?= 1 |
This file contains 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
class Deepcl < Formula | |
desc "OpenCL library to train deep convolutional neural networks" | |
homepage "https://github.com/hughperkins/DeepCL" | |
url "https://github.com/hughperkins/DeepCL/archive/v8.1.3.tar.gz" | |
sha256 "e0301ba5ae4464ae27a3ec2c777b77faa90b9ee6d1059b200f06a9100d182de1" | |
resource "EasyCL" do | |
url "https://github.com/hughperkins/EasyCL/archive/b9023cdf25c10524ad06227275d3756bbe0c0ed2.tar.gz" | |
sha256 "96c6061385e850081cfce17673353b41dbf470fc6b6f3a15e047b1d6506ba80e" | |
end |
NewerOlder