Skip to content

Instantly share code, notes, and snippets.

View adam-singer's full-sized avatar
👾

Adam Singer adam-singer

👾
View GitHub Profile

Angular Dart Check List

The following shows what to watch out for when making Angular Dart applications. For more information about Angular Dart, see angulardart.org.

Table Of Contents

23:42:15-adam@Adams-MacBook-Air:~/dart/Pixelate
$ cat docs/pixelate//pixelate_flex_panel.json| python -mjson.tool
{
"classes": {
"class": [
{
"name": "FlexPanel",
"preview": "<p>Represents a container that utilizes a flexible layout.</p>",
"qualifiedName": "pixelate/pixelate_flex_panel.FlexPanel"
}
@adam-singer
adam-singer / dart-deploy-script.sh
Created March 21, 2014 05:32
Example of deploying dart to google compute engine without having to compile the dart-sdk from source.
#!/usr/bin/env bash
set +o xtrace
USER=$USER
PROJECT=dart-compute-project
INSTANCE_NAME=dart-compute
TAGS=dart
MACHINE_TYPE=f1-micro
NETWORK=default
IP=ephemeral
@adam-singer
adam-singer / gist:9716976
Created March 23, 2014 01:13
changelog.md version and timestamp for dart
alias dart_changelog_stamp='echo `date +%Y-%m-%d` \(SDK `cat /Applications/dart/dart-sdk/version ` r`cat /Applications/dart/dart-sdk/revision `\)'
@adam-singer
adam-singer / output.txt
Created March 23, 2014 02:09
Output from Release 0.4.x - Deploy 4 - Dart 1.0
–(~/dart/discovery_api_dart_client_generator)–($ time dart ./tool/update.dart --gituser=financeCoding --repouser=dart-google-apis --force --pub --retry-auto --pubserver=http://pub.dartlang.org/
Starting automated update of client libraries...
------------------------------------------------
Stored GitHub credentials found. Checking...
GitHub authentication successful.
GitHub credentials still valid.
Fetching list of currently available Google APIs...
dart_adexchangebuyer_v1_api_client
diff --git a/utils/compiler/compiler.gyp b/utils/compiler/compiler.gyp
index fc4b1cf..d32497e 100644
--- a/utils/compiler/compiler.gyp
+++ b/utils/compiler/compiler.gyp
@@ -30,7 +30,7 @@
'<(SHARED_INTERMEDIATE_DIR)/dart2js.dart.snapshot',
],
'action': [
- '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
+ '<(PRODUCT_DIR)/../DebugX64/dart',

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

@adam-singer
adam-singer / gist:588901a9c6bf935926ab
Created May 17, 2014 06:39
Output from Release 0.4.x - Deploy 5 - discovery_api_client_generator 0.4.5 2014-05-16 (SDK 1.4.0-dev.6.7 r36210)
–(~/dart/discovery_api_dart_client_generator)–($ time dart ./tool/update.dart --gituser=financeCoding --repouser=dart-google-apis --force --pub --retry-auto --pubserver=http://pub.dartlang.org/
Starting automated update of client libraries...
------------------------------------------------
Stored GitHub credentials found. Checking...
GitHub authentication successful.
GitHub credentials still valid.
Fetching list of currently available Google APIs...
dart_adexchangebuyer_v1_api_client
alias gdbnew='/usr/local/Cellar/gdb/7.6/bin/gdb'

SPIKE: AngularDart REST Client

Every client-side applications has to talk to REST APIs. At the moment AngularDart does not provide any high-level abstractions to help you do that. You can send http requests, but that's it.

This post is about a spike I did a few days ago to explore possible ways of building such a library. It also shows that you can do quite a bit in just one hundred lines of Dart.

Design Principles