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
open System | |
open System.Globalization | |
//--------------------------------------------------------------- | |
// Apply Your Knowledge! | |
// | |
// Below is a list containing comma separated data about | |
// Microsoft's stock prices during March of 2012. Without | |
// modifying the list, programatically find the day with the | |
// greatest variance between the opening and closing price. | |
// |
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
/// <summary> | |
/// Restores the player to the starting point to try the level again. | |
/// </summary> | |
public void StartNewLife() | |
{ | |
//First try at default start position | |
Player.Position= start; | |
//get the distance from the player the enemies need to be | |
var playerRange = Enumerable.Range((int)Player.Position.X - 3, (int)Player.Position.X + 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
var Musician = { | |
FirstName:"Prince", | |
MiddleName:"Rogers", | |
LastName:"Nelson", | |
StageName:"Prince" | |
} |
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
var Musician = { | |
FirstName:"Prince", | |
MiddleName:"Rogers", | |
LastName:"Nelson", | |
StageName:"Prince" | |
} | |
Musician.StageName ="The Artist Formerly know as "+Musician.StageName; | |
Musician.StageName ="Jamie Starr"; | |
Musician.StageName ="Christopher"; | |
Musician.StageName ="Alexander Nevermind"; |
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
#include "PhysicsEdgeActor.h" | |
PhysicsEdgeActor::PhysicsEdgeActor(void) | |
{ | |
this->_shapeType = SHAPETYPE_EDGE; | |
this->_edge = b2EdgeShape(); | |
PhysicsActor::SetShapeType(SHAPETYPE_EDGE); | |
} |
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
#include "StdAfx.h" | |
#include "RubeLoader.h" | |
#include "rubestuff/b2dJsonImage_OpenGL.h" | |
using namespace std; | |
//--Comparer | |
bool compareImagesByRenderOrder_ascending(const b2dJsonImage_OpenGL* a, const b2dJsonImage_OpenGL* b) | |
{ | |
return a->renderOrder < b->renderOrder; |
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
.UserInputTable table { | |
width: 100%; | |
border: 0; | |
border-spacing:0; | |
border-collapse:collapse; | |
} | |
.UserInputTable table td, .UserInputTable table td { | |
padding:5; | |
} |
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
public static class DiagnositcObjectExtensions | |
{ | |
public static string ToDiagnosticInfoString(this IEnumerable items) | |
{ | |
var retval = String.Empty; | |
if(items.Count()>0) | |
{ | |
StringBuilder sb = new StringBuilder(); | |
sb.AppendLine(“—–BEGIN DIAGNOSTIC——-”); |
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
#!/bin/bash | |
#Author: Terrance Smith | |
#musicm122.blogspot.com | |
#Optional Argument = n : no prompt | |
#currently will take a while on a large number of files | |
function print_files | |
{ | |
for file in * | |
do echo $file |
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
@echo off | |
:: Preforms commit on Webs Directory | |
echo Starting Commit | |
echo bzr commit -m "Daily Commit for :%date% | |
cd C:\Webs\ | |
bzr.exe commit -m "Daily Commit for : %date%" | |
pause | |
echo "Task Complete" | |
cd .. |