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
''' | |
Readability Bookmark Purge | |
=== | |
DELETES All of your *ARCHIVED* Bookmarks | |
Useful for Starting 'Fresh' | |
You need to install the Readabiliy Python Library | |
http://pypi.python.org/pypi/readability-api/#downloads | |
By Matan Lurey (matan [at] lurey [dot] org) |
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
using System; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Com.Rakuten.Services.Common.Secure | |
{ | |
/// <summary> | |
/// Salted password hashing with PBKDF2-SHA1 | |
/// </summary> | |
/// <remarks> |
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
using System; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Com.Rakuten.Services.Common.Secure | |
{ | |
/// <summary> | |
/// Salted password hashing with PBKDF2-SHA1 | |
/// </summary> | |
/// <remarks> |
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
<!DOCTYPE html> | |
<html ng-app> | |
<head> | |
<title>Work Manager</title> | |
</head> | |
<body> | |
<script type="application/dart" src="lib/index.dart"></script> | |
<script src="packages/browser/dart.js"></script> | |
</body> | |
</html> |
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
void main() { | |
// No error: | |
User.doSomething(); | |
// Error | |
User | |
..doSomething() | |
..doSomething(); | |
} |
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
library reflection_test; | |
import 'dart:mirrors'; | |
List someFunction(String string, List list, Map map) {} | |
void main() { | |
ClosureMirror mirror = reflect(someFunction); | |
// Outputs: (String, List, Map) |
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
<!-- | |
Assume we have the following Dart code: | |
Future<String> onName => _nameService.getName(); | |
--> | |
<!-- Default case: On future complete, load data as $value --> | |
<template [ngAwaitThen]="onName"> | |
Hello {{$value}}! | |
</template> |
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:async'; | |
import 'package:angular2/metadata.dart'; | |
import 'package:linter/isolate.dart'; | |
Future<Null> main(SendPort sendPort) { | |
// Create a new 'Isolate'-based plugin to the linter. | |
final plugin = await registerPlugin(sendPort, new PluginOptions( | |
// To avoid serializing/deserializing needlessly, support a basic | |
// regular expression-based filter to check a file for before |
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
@JS() | |
library fetch_contacts_interop; | |
import 'package:func/func.dart'; | |
import 'package:js/js.dart'; | |
// Natively calls "fetch_contacts", but we can use typed Dart code while developing! | |
@JS('fetch_contacts') | |
external void fetchContacts(String prefix, VoidFunc1<List<String>> callback); |
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
@JS() | |
library fetch_contacts_interop; | |
import 'dart:async'; | |
import 'package:func/func.dart'; | |
import 'package:js/js.dart'; | |
// Natively calls "fetch_contacts", but we can use typed Dart code while developing! | |
@JS('fetch_contacts') |
OlderNewer