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
import async | |
def spawnGenerator(channel is Channel) | |
run with for i = count(from: 2, by: 1) do channel send(i) | |
end | |
def spawnFilter(in is Channel, prime is Int) | |
val out = Channel new(1) | |
run with | |
while true do |
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
#include <u.h> | |
#include <libc.h> | |
void | |
main(int argc, char *argv[]) | |
{ | |
int noNewline; | |
int arg, length; | |
char *output, *p; |
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
After a long delay, this is the result I get: | |
$ git push | |
Connection closed by 207.97.227.239 | |
fatal: The remote end hung up unexpectedly | |
This, as far as I can tell, started happening spontaneously. Up until this point, | |
I've been able to push to github without any problems. I haven't changed anything | |
with my ssh keys. |
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
$ git branch -avv; git remote -v | |
blogofile d3f4117 Start styling and setting up blogofile templates. | |
* master 04ba27e [origin/master: ahead 9] New post about new blog. | |
remotes/origin/master d3f4117 Start styling and setting up blogofile templates. | |
origin [email protected]:munificent/journal.git (fetch) | |
origin [email protected]:munificent/journal.git (push) |
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
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
// Simple test program invoked with an option to eagerly | |
// compile all code that is loaded in the isolate. | |
// Compiled using frog, the in-progress self-hosted compiler: | |
// dart/frog$ ./frogsh --out=hello.js --compile-only samples/hello.dart | |
class HelloDartTest { | |
static testMain() { |
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
#import('dart:io'); | |
#import('dart:isolate'); | |
void main() { | |
var type = 'fast'; | |
var args = new Options().arguments; | |
if (args.length > 0) { | |
type = args[0]; | |
} |
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
name: your_awesome_app | |
dependencies: | |
git: /home/daw/myLib # Or whatever the path to myLib is |
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
class Graph { | |
num nodesNumber; | |
List<List<num>> edges; | |
Graph(this.nodesNumber, List<List<num>> edges) { | |
this.edges = new Iterable.generate(nodesNumber, | |
(_) => new List.fixedLength(nodesNumber)).toList(); | |
for (var e in edges) edge(e[0], e[1], e[2]); | |
} |
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
import 'dart:io'; | |
const MAX_ATTEMPTS = 10000; | |
const MAX_JOBS = 20; | |
var total = 0; | |
var numRunning = 0; | |
main() { | |
for (var i = 0; i < MAX_JOBS; i++) spawnProc(); |
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
Ingredients: | |
- 5-6 tilapia fillets, cut in half lengthwise | |
- 1 cup flour, plus more for dredging | |
- 2 tsp salt (maybe a bit more) | |
- 2 tsp garlic powder | |
- 2 tsp onion powder | |
- 2 tsp black pepper | |
- 1 tbsp paprika | |
- dash cayenne |
OlderNewer