I hereby claim:
- I am antonmoiseev on github.
- I am amoiseev (https://keybase.io/amoiseev) on keybase.
- I have a public key ASD-IJ8NHQ5LTgLEU-LWCbvpo7bn7TgR02bcsQbcS07jRAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
class A { | |
final foo; | |
A(this.foo) { | |
log('A#ctor'); | |
} | |
} | |
class B extends A { | |
final bar; | |
B() |
var foo = 0; | |
class A { | |
static var bar = (foo = 1); | |
} | |
void main() { | |
print(foo); // 0 since A.bar hasn't been ever accessed yet | |
A.bar; // A.bar's initialization expression is lazily evaluated | |
print(foo); // 1 since A.bar has been accessed already |
import 'package:angular/angular.dart'; | |
import 'package:angular/application_factory.dart'; | |
main() => applicationFactory().addModule(new AppModule()).run(); | |
class AppModule extends Module { | |
AppModule() { | |
bind(HomeComponent); | |
bind(RouteInitializerFn, toValue: _initRouter); | |
bind(NgRoutingUsePushState, toFactory: (_) => new NgRoutingUsePushState.value(false)); |
using System; | |
using System.Diagnostics; | |
using System.IO; | |
namespace Cutter | |
{ | |
class MainClass | |
{ | |
const float Precision = 0.02f; | |
const float CutterStep = 0.1f; |
public static readonly KilnApiCall Project = new KilnApiCall( | |
path: "Project/{ixProject}", | |
queryString: "?token={token}", | |
httpMethod: "GET" | |
); |
using (var kiln = Kiln.AuthenticateOnDemand(account, user, password)){ | |
// Get specific repository from Kiln | |
var project = kiln.GetProject(5); | |
} |
Kiln kiln; | |
bool success = Kiln.TryAuthenticate(server, user, password, out kiln); | |
// Then check success | |
if (success) { | |
// Do some stuff... | |
} | |
// Or instead check Kiln instance | |
if (kiln != null) { |
using (Kiln myAccount = Kiln.Authenticate(server, user, password)) { | |
// Retrieve all project records from specified account | |
var projects = myAccount.GetProjects(); | |
// If you are familiar with Kiln API internals | |
// you could use more "low level" call | |
var kilnApiLibrary = myAccount.Get<Project>( | |
KilnApiCall.Project, new { ixProject = 5 }); | |
} |