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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using System.Diagnostics; | |
namespace ezekiel | |
{ | |
class Program |
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
# adah's first program | |
puts 'what is the number to divide?' | |
x=gets.to_i | |
puts 'what do you want to divide it by?' | |
y=gets.to_i | |
puts 'here is the answer.' | |
puts x/y | |
r=x%y | |
if r != 0 then |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace NormalizeLineEndings | |
{ | |
internal class Program | |
{ |
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
var assert = require('assert'); | |
var https = require('https'); | |
var fs = require('fs'); | |
var repo = '/login/repo-name/'; | |
var output_path = './a/folder'; | |
function https_get(options, success) { | |
return https.get(options, function(res) { | |
if (res.statusCode !== 200) { |
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
describe('The require function (or service locator)', function () { | |
beforeEach(function () { | |
}); | |
it('should exist', function () { | |
expect(require).toBeDefined(); | |
}); | |
it('should return the Windows object when passed "Windows"', function () { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>sidera</title> | |
<link href="/css/default.css" rel="stylesheet" /> | |
<script src="requestAnimationFrameShim.js"></script> | |
<script src="bootstrap.js"></script> |
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
// `input` will be defined elsewhere, it's a means | |
// for us to capture the state of input from the player | |
var startScreen = (function(input) { | |
// the red component of rgb | |
var hue = 0; | |
// are we moving toward red or black? | |
var direction = 1; | |
var transitioning = false; |
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
var mainGameScreen = (function () { | |
// the set of entities we're updating and rendering | |
var entities = []; | |
// how many enemy ships do we want to start with | |
var numOfEnemyShips = 12; | |
// intitalize the screen, expected to be called | |
// once when transitioning to the screen | |
function start() { |
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
// alias (and pre-compute) the angle of | |
// a full circle (360°, but in radians) | |
var fullCircle = Math.PI * 2; | |
// invoke this function to create an emeny ship entity | |
// to add to the main game screen | |
function makeEnemyShip(x, y) { | |
// position is set based upon the values | |
// provided to the function |
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
define(function() { | |
var pools = {}; | |
var tags = {}; | |
var manifest = { | |
'laser': ['sfx/laser.wav', 2], | |
'explosion': ['sfx/explosion.wav', 8] | |
}; | |
function createTag(src, whenReady) { |