Skip to content

Instantly share code, notes, and snippets.

View natanloterio's full-sized avatar
🎯
Focusing

Natan Lotério natanloterio

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am natanloterio on github.
  • I am natanloterio (https://keybase.io/natanloterio) on keybase.
  • I have a public key ASAMrQXkEocxVGjb3ywq9ZTRh405xDE3-JimfU7phB8Wego

To claim this, I am signing this object:

# Screen capture tests
# Note: flutter driver expects a pair of files eg, main.dart and main_test.dart
tests:
- test_driver/main.dart
# Interim location of screenshots from tests before processing
staging: /tmp/screenshots
# A list of locales supported in app
locales:
git:(develop) ✗ screenshots
Starting flutter daemon... 0.7s
Unhandled exception:
type 'List<dynamic>' is not a subtype of type 'String'
#0 Config._processDevices.<anonymous closure>.<anonymous closure> (package:screenshots/src/config.dart:150:54)
#1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
#2 Config._processDevices.<anonymous closure> (package:screenshots/src/config.dart:137:15)
#3 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
#4 Config._processDevices (package:screenshots/src/config.dart:136:13)
#5 Config.devices (package:screenshots/src/config.dart:57:7)
➜ facio-mobile copy git:(develop) ✗ screenshots -c screenshots.yaml
Unhandled exception:
Error on line 7, column 3: Expected a key while parsing a block mapping.
7 │ staging: /tmp/screenshots
│ ^
#0 Parser._parseBlockMappingKey (package:yaml/src/parser.dart:441:5)
#1 Parser._stateMachine (package:yaml/src/parser.dart:86:16)
#2 Parser.parse (package:yaml/src/parser.dart:47:19)
# Screen capture tests
# Note: flutter driver expects a pair of files eg, main.dart and main_test.dart
tests:
- test_driver/main.dart
# Interim location of screenshots from tests before processing
staging: /tmp/screenshots
# A list of locales supported in app
locales:
const Queue = require('bull')
const fila = new Queue('fila');
//Works
fila.process(async (job,done) =>{
console.log("processou job:"+job+" data:"+done)
job.progress(40)
done()
})
var Queue = require('bull');
var fila = new Queue('fila', 'redis://192.168.0.11:6379');
const job = fila.add({
foo: 'bar'
})
//Doesn`t works
fila.on('completed',(job, result) => {
@natanloterio
natanloterio / chat-frontend.js
Created December 2, 2012 01:48 — forked from martinsik/chat-frontend.js
Node.js chat frontend and server
$(function () {
"use strict";
// for better performance - to avoid searching in DOM
var content = $('#content');
var input = $('#input');
var status = $('#status');
// my color assigned by the server
var myColor = false;