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
ssh gitserver.com | |
mkdir -p /var/data/repos/myrepo.git | |
cd /var/data/repos/myrepo.git | |
git --bare init --shared=group |
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
export PATH=$PATH:/Users/sladd/.gem/ruby/1.8/bin | |
alias gst='git status ' | |
alias gc='git commit ' | |
alias gca='git commit -a ' | |
alias ga='git add ' | |
alias gco='git checkout ' | |
alias gb='git branch ' | |
alias gm='git merge ' | |
alias gp='git push ' |
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 'dart:io'; | |
import 'dart:async'; | |
import 'dart:math'; | |
// The following function is part of a third-party package that you can't touch. | |
Future doCoolStuff() { | |
var completer = new Completer(); | |
// Sometimes bad things happen. | |
if (new Random().nextBool()) { |
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/sh | |
DARTFILENAME=$1.dart | |
HTMLFILENAME=$1.html | |
ELEMENTNAME=$2 | |
LIBNAME=`echo $2 | sed -e "s/-/_/g"` | |
CLASSNAME=$3 | |
echo > $HTMLFILENAME | |
echo "<head>" >> $HTMLFILENAME |
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 'dart:collection'; | |
void main() { | |
var list = new WatchList([1,2,3,4,5]); | |
var mapped = list.where((x) => x.isEven).map((x) => x*2); | |
// What is printed here? | |
print(list.accessCount); |
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 TutorialHome extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
// Scafold is a layout for the major material design widgets. | |
return new Scaffold( | |
appBar: new AppBar( | |
leading: new IconButton( | |
icon: new Icon(Icons.menu), | |
tooltip: 'Navigation menu', | |
onPressed: null, |