Skip to content

Instantly share code, notes, and snippets.

View kwalrath's full-sized avatar

Kathy Walrath kwalrath

View GitHub Profile
@kwalrath
kwalrath / index.html
Last active August 29, 2015 14:26
web_app
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>web_app</title>
</head>
<body>
@kwalrath
kwalrath / main.dart
Last active August 29, 2015 14:26
assert
main() {
var text = 'Hi';
var number = 99;
var urlString = 'https://github.com/';
// Make sure the variable has a non-null value.
assert(text != null);
// Make sure the value is less than 100.
assert(number < 100);
@kwalrath
kwalrath / main.dart
Last active August 29, 2015 14:26
break_continue
bool shutDownRequested() => true;
processIncomingRequests() {}
class Candidate {
var yearsExperience = 2;
interview() {}
}
main() {
while (true) {
@kwalrath
kwalrath / main.dart
Last active August 29, 2015 14:26
exceptions
class OutOfLlamasException {}
breedMoreLlamas() {}
buyMoreLlamas() {}
cleanLlamaStalls() {}
class Point {}
main() {
var numberOfLlamas = 1;
@kwalrath
kwalrath / main.dart
Last active August 29, 2015 14:26
for_loops
doFor() {
//BEGIN
var message = new StringBuffer("Dart is fun");
for (var i = 0; i < 5; i++) {
message.write('!');
}
//END
print(message);
}
@kwalrath
kwalrath / main.dart
Created August 6, 2015 23:50
assert
main() {
var text = 'Hi';
var number = 99;
var urlString = 'https://github.com/';
// Make sure the variable has a non-null value.
assert(text != null);
// Make sure the value is less than 100.
assert(number < 100);
@kwalrath
kwalrath / main.dart
Last active August 29, 2015 14:26
assert
main() {
var text = 'Hi';
var number = 99;
var urlString = 'https://github.com/';
// Make sure the variable has a non-null value.
assert(text != null);
// Make sure the value is less than 100.
assert(number < 100);
@kwalrath
kwalrath / index.html
Last active August 29, 2015 14:28
homepage_jw_html
<!DOCTYPE html>
<!-- Copyright 2015 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@kwalrath
kwalrath / main.dart
Last active September 9, 2015 17:05
homepage_jw
import 'dart:html' show HttpRequest;
main() async {
// Asychronously get text to display.
var lines = await getLines();
// If result is non-null, print it.
lines?.forEach((line) => print(line));
}

This project (like angular/angular) doesn't do simple merges. It uses rebases and squashes to keep a simple, linear history.

Now that GitHub lets you squash as you merge, this page is less necessary. If you're accepting a change as-is, with only commit message changes (if any), then you can push the green button.

For those other times... These notes are based on Ward's setup, and Kathy has followed them many times. Many other possibilities exist (e.g. see Using Git with Angular repositories),