- Feche o VSCode e o simulador iOS
- Rode o script "pod_clean.sh" na raiz do projeto
- Abra o VSCode e o simulador iOS
- Rode o projeto
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
echo Hello World from Gist! |
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 'dart:math'; | |
import 'package:stream_transform/stream_transform.dart'; | |
StreamController<int> controller = StreamController<int>.broadcast(); | |
void probe(int id, int delay) { | |
print("Submitted(ID: $id; delay: $delay)"); | |
controller.add(id); | |
} |
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() { | |
var result = capitalize('minha_string_Capitalizada_coRreTamenTE', pattern: '_', firstCap: false); | |
print(result); | |
} | |
String capitalize(String value, {String? pattern, bool firstCap = false}) { | |
var wordList = value.replaceAll(RegExp(' +'), pattern ?? ' ').split(pattern ?? " "); | |
if (firstCap) { | |
return wordList.map((str) => capitalizeAll(str)).join(pattern ?? " ").replaceAll(pattern ?? ' ', ''); | |
} else { |
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
const expect = require('chai').expect; | |
const EventEmitter = require('events'); | |
const rxjs = require('rxjs'); | |
const { ajax } = require('rxjs/ajax'); | |
const { debounce, debounceTime, distinctUntilChanged, switchMap, tap } = require('rxjs/operators'); | |
describe('A emitter', function () { | |
it('should emit something', async function (done) { |
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 echo(SendPort initialReplyTo) { | |
var port = new ReceivePort(); | |
initialReplyTo(port.sendPort); | |
port.listen((msg) { | |
var data = msg[0]; | |
SendPort replyTo = msg[1]; | |
replyTo.send(data); | |
if (data == "bar") port.close(); | |
}); | |
} |
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 'dart:io'; | |
import 'package:http/http.dart' show Client; | |
import 'package:googleapis_auth/auth_io.dart' as auth; | |
import 'package:googleapis/common/common.dart' show Media, DownloadOptions; | |
import 'package:googleapis/drive/v2.dart' as drive; | |
import 'package:path/path.dart' as path; | |
Future convertFile(drive.DriveApi api, |
Gitlab exports repositories to tar archive which contains .bundle files.
We have repo.bundle file and we want to restore files from it.
- create bare repo from bundle file
git clone --mirror myrepo.bundle my.git