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
/* GraphicGlDemoActivity.java | |
* Author: Yong Bakos | |
* Since: 11/26/2012 | |
* Thanks to: | |
* Cube: http://intransitione.com/blog/create-a-spinning-cube-with-opengl-es-and-android/ | |
* OpenGL Boilerplate: http://www.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/ | |
*/ | |
package com.humanoriented.sudoku; | |
import java.nio.ByteBuffer; |
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
/* Random.jack | |
* By Mark Armbrust | |
* http://nand2tetris-questions-and-answers-forum.32033.n3.nabble.com/Random-number-generator-for-hack-cpu-td4025503.html | |
* Also see: | |
* http://nand2tetris-questions-and-answers-forum.32033.n3.nabble.com/Pseudo-Random-Number-Generator-td4026059.html#a4027617 | |
*/ | |
class Random { | |
static int seed; | |
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
/* Yong Bakos | |
* This program executes some tests that illustrate the properties | |
* and behaviors of strings. | |
*/ | |
#include <cstdlib> | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
// A generic test function, that simply prints "PASSED" if b is true |
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
// Project: Code controls circuitry. | |
// Outputs: lights | |
// Inputs: sensors (slider, microphone, light sensor) | |
// | |
// This program has three components: | |
// - light detection | |
// - temperature detection | |
// - sound detection | |
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
// (c) 2020 Yong Joseph Bakos. Use this freely. | |
// https://github.com/flutter/flutter/issues/27821 | |
// Usage: | |
// DropdownRatingFormField( | |
// maxRating: 4, | |
// validator: (value) { /* ... */ }, | |
// onSaved: (value) { /* ... */ } | |
// ); | |
import 'package:flutter/material.dart'; |
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
import 'package:flutter/material.dart'; | |
void main() => runApp(App()); | |
class App extends StatelessWidget { // TODO: Convert to StatefulWidget | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Example', |
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
void main() { | |
print('a'); | |
// TODO: Do the same work, but without the use of `go`. | |
go().then( (value) { | |
print(value); | |
}); | |
print('b'); | |
} | |
Future<int> go() { |
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
// Week 8 Exploration 5 | |
void main() { | |
runApp(App()); | |
} | |
class App { | |
} |
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
// Week 8 Exploration 4 | |
void main() { | |
runApp(App()); | |
} | |
class App { | |
} |
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
// Week 8 Exploration 3 | |
void main() { | |
runApp(App()); | |
} | |
class App { | |
} |
NewerOlder