Skip to content

Instantly share code, notes, and snippets.

View johsoe's full-sized avatar

Johnny Sørensen johsoe

View GitHub Profile
<queries>
<intent>
<action
android:name="android.intent.action.VIEW" />
<data
android:mimeType="application/pdf" />
</intent>
void main() {
final testInput = "628587937986794155";
int numericValue = int.parse(testInput);
print('testInput: $testInput - numericValue: $numericValue');
}
import 'package:intl/intl.dart';
void main() {
var danishCurrency = NumberFormat.simpleCurrency(locale: "da_DK");
var americanCurrency = NumberFormat.simpleCurrency(locale: "en_US");
var britishCurrency = NumberFormat.simpleCurrency(locale: "en_GB");
var germanCurrency = NumberFormat.simpleCurrency(locale: "de_DE");
var canadianCurrency = NumberFormat.simpleCurrency(locale: "en_CA");
print(danishCurrency.format(12.34) + '/kWh');
print(americanCurrency.format(12.34) + '/kWh');
@johsoe
johsoe / 0_reuse_code.js
Created August 5, 2014 11:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console