Skip to content

Instantly share code, notes, and snippets.

View OakRaven's full-sized avatar

@WebCoding4Fun OakRaven

View GitHub Profile
@OakRaven
OakRaven / Module3AssignmentProblem.fs
Created October 18, 2015 18:56
Submission of Module 3 - Assignment
open System
let GoldenRatio = (1.0 + Math.Sqrt(5.0)) / 2.0
let GetValues =
Console.Write("How many numbers would you like to enter? ")
let count = Console.ReadLine();
let count = int count
let values = [
open System
let rec getPeopleCount() : int =
Console.Write("How many people? ")
let countinput = Console.ReadLine()
let canparse, count = Int32.TryParse(countinput)
if canparse then
if count <= 0 then
Console.WriteLine("** Please enter a number, greater than 0 **")
getPeopleCount()
@OakRaven
OakRaven / PsSvnBackup.ps1
Last active September 10, 2015 10:36
PowerShell Script for performing hotcopy Subversion backup and archiving.
# -------------------------------------------------------------------------------------------------
# SETTINGS
# -------------------------------------------------------------------------------------------------
$REPO_PATH = "X:\SVNREPOS"
$TEMP_BACKUP_PATH = "X:\SVNREPOS-BACKUP"
$PERM_BACKUP_PATH = "X:\SVN-BACKUPS"
$SVNADMIN_EXE_PATH = "C:\Program Files (x86)\VisualSVN Server\bin\svnadmin.exe"
$7ZA_EXE_PATH = "X:\SVN-BACKUPS\7za.exe"
$DAYS_TO_KEEP_BACKUPS = 14
@OakRaven
OakRaven / keybase.md
Last active August 29, 2015 14:06
keybase.md

Keybase proof

I hereby claim:

  • I am OakRaven on github.
  • I am beingmikeh (https://keybase.io/beingmikeh) on keybase.
  • I have a public key whose fingerprint is E29E EE3B 35E2 936E C8FD 9CE5 446A E43C A518 FAB0

To claim this, I am signing this object:

@OakRaven
OakRaven / SpecRunner.html
Created May 6, 2012 16:46
Jasmine SpecRunner
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Jasmine Spec Runner</title>
<link rel="stylesheet" type="text/css" href="spec/jasmine/jasmine.css">
<script src="spec/jasmine/jasmine.js"></script>
<script src="spec/jasmine/jasmine-html.js"></script>
<!-- include source files here... -->
@OakRaven
OakRaven / app.coffee
Created January 6, 2012 17:31
HTML Test for CoffeeScript and KnockoutJS
class ComboBoxItem
constructor: (@id, @name) ->
class App
textEntry: ko.observable("")
collection: ko.observableArray([])
addToCollection: ->
item = new ComboBoxItem(@collection().length, @textEntry())