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
////////////////////////////////////////////////////////////////////////////////////// | |
// spotlight.cpp | |
// | |
// This program draws an array of spheres lit by a spotlight whose cone angle can be | |
// changed and which can be moved as well. The spotlight cone is shown by a wireframe. | |
// The spheres are colored using color material mode. | |
// | |
// Interaction: | |
// Press the page up/down keys to increase/decrease the spotlight cone angle. | |
// Press the arrow keys to move the spotlight. |
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
[ui] | |
username = mattkeller | |
merge = vimdiff | |
[extensions] | |
extdiff= | |
hgk= | |
hgext.beautifygraph= | |
histedit= |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>MathJax Dynamic Math Test Page with ASCIIMath Input</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_HTMLorMML"></script> | |
<style> | |
input {margin-top: .7em} |
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
/* Copyright 2015-2017 Jack Humbert | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
{ | |
"Uppercase pipe": { | |
"prefix": "ng-pipe-uppercase", | |
"description": "Uppercase pipe", | |
"body": [ | |
"{{ ${variable} | uppercase }}$0" | |
] | |
}, | |
"Lowercase pipe": { | |
"prefix": "ng-pipe-lowercase", |
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 Sprite { | |
String imagePath; | |
int imageWidth; | |
int imageHeight; | |
} |
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
abstract class GameObject { | |
Widget render(); | |
Rect getRect(Size screenSize, double runDistance); | |
void update(Duration lastTime, Duration elapsedTime) {} | |
} |
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
Sprite dino = Sprite() | |
// basically a placeholder because we do the sprite animations separately | |
..imagePath = "dino/dino_1.png" | |
..imageWidth = 88 | |
..imageHeight = 94; | |
class Dino extends GameObject { | |
@override | |
Widget render() { |
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
Rect dinoRect = dino.getRect(screenSize, 0); | |
return Scaffold( | |
appBar: AppBar( | |
title: Text(widget.title), | |
), | |
body: Stack( | |
alignment: Alignment.center, | |
children: [ | |
Positioned( | |
left: dinoRect.left, |
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
AnimationController worldController; | |
@override | |
void initState() { | |
super.initState(); | |
worldController = | |
AnimationController(vsync: this, duration: Duration(days: 99)); | |
} |
OlderNewer