Skip to content

Instantly share code, notes, and snippets.

View amirrajan's full-sized avatar
💭
Working on DragonRuby Game Toolkit and RubyMotion

Amir Rajan amirrajan

💭
Working on DragonRuby Game Toolkit and RubyMotion
View GitHub Profile
@kouphax
kouphax / DebuggerShim.cs
Created July 5, 2011 19:47
NSpec Debugger Shim
using System;
using NUnit.Framework;
using NSpec.Domain;
using System.Reflection;
using NSpec;
namespace DynamicBlog.Tests
{
[TestFixture]
public class DebuggerShim
@michiakig
michiakig / ants.clj
Created July 19, 2011 22:37
Clojure ant sim from Rich Hickey
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
; which can be found in the file CPL.TXT at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this license.
; You must not remove this notice, or any other, from this software.
;dimensions of square world
@amirrajan
amirrajan / Rakefile.rb
Created November 15, 2012 22:33
asp.net mvc https
desc 'creates an initial dev.yml file for, this file is needed if you want to run an asp.net mvc app using IISExpress'
task :init_dev_yml do
File.open("dev.yml", 'w') { |f| f.write("database: (local)\\sqlexpress\niisexpress: C:\\Program Files (x86)\\IIS Express") }
end
task :server do
if dev_yml_exists
start_iis_express_with_config "applicationHost.config"
else
puts "it doesn't look like dev.yml exists on this machine. You need to have this file to run your mvc app in IIS Express, run the dev:init_dev_yml rake task to create the dev.yml. After the file is created, you'll want to inspect the file and change the default values."
@amirrajan
amirrajan / main.rb
Last active August 17, 2019 18:46
Default gist for fiddle.dragonruby.org
def tick args
args.outputs.labels << [640, 360, "Hello World.", 0, 1]
end