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
void main() { | |
String hexString = | |
"687474703A2F2F65727063727033752E706F61732E636F6D2E74723A383030302F4F415F48544D4C2F58787063417070536572766C65742E6A7370"; | |
List<String> splitted = []; | |
for (int i = 0; i < hexString.length; i = i + 2) { | |
splitted.add(hexString.substring(i, i + 2)); | |
} | |
String ascii = List.generate(splitted.length, | |
(i) => String.fromCharCode(int.parse(splitted[i], radix: 16))).join(); | |
print('${ascii}'); |
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 'package:flutter/services.dart'; | |
import 'package:paynet/common/utils/index.dart'; | |
class InputCapitalizer extends TextInputFormatter { | |
@override | |
TextEditingValue formatEditUpdate( | |
TextEditingValue oldValue, TextEditingValue newValue) { | |
int selectionIndex = newValue.selection.end; | |
return TextEditingValue( |
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 { | |
Dimensions, | |
View, | |
WebView, | |
} from 'react-native'; | |
import React, { Component } from 'react'; | |
const injectedScript = function() { | |
function waitForBridge() { | |
if (window.postMessage.length !== 1){ |
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 'package:json_annotation/json_annotation.dart'; | |
part '$FILE$.g.dart'; | |
@JsonSerializable() | |
class $CLASS_NAME$ { | |
$CLASS_NAME$({}); | |
factory $CLASS_NAME$.fromJson(Map<String, dynamic> json) => | |
_$$$CLASS_NAME$FromJson(json); | |
Map<String, dynamic> toJson() => _$$$CLASS_NAME$ToJson(this); |
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
var mkdirp = require('mkdirp'); | |
var path = require('path'); | |
const fs = require('fs'); | |
const args = process.argv.slice(2); | |
name = args[0]; | |
const mainIndexContent = `\r\nexport {default as ${name}} from './${name}'`; | |
const indexContent = `import ${name} from './${name}'\r\nexport default ${name}`; |
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 React, { Component } from 'react'; | |
import { View, Text } from 'react-native'; | |
import Svg, { | |
Defs, | |
LinearGradient, | |
Stop, | |
G, | |
Path, | |
Ellipse, |
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 React, { Component } from 'react'; | |
import { View, Text } from 'react-native'; | |
import Svg, { | |
Defs, | |
LinearGradient, | |
Stop, | |
G, | |
Path, | |
Ellipse, |
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
"Adana", | |
"Adıyaman", | |
"Afyonkarahisar", | |
"Ağrı", | |
"Aksaray", | |
"Amasya", | |
"Ankara", | |
"Antalya", | |
"Ardahan", | |
"Artvin", |