Skip to content

Instantly share code, notes, and snippets.

View review.md

Information Packets (IP)

Primary properties

Improve markdown of this section

Optional properties

Instead of just 'scope - see scope', add some information about scope and then '(for more information, see scope)' for instance.

Ports API

View ControlMirobot.coffee
noflo = require 'noflo'
Mirobot = null
sleep = (ms) ->
start = new Date().getTime()
continue while new Date().getTime() - start < ms
class ControlMirobot extends noflo.Component
description: 'Control Mirobot.'
icon: 'pencil'
@GabiThume
GabiThume / noflo.json
Created Oct 4, 2014
Demo Canny Edges
View noflo.json
{
"properties": {
"name": "main",
"id": "canny/main",
"project": "canny",
"environment": {
"type": "noflo-browser",
"content": "<canvas id=\"can\" width=\"640\" height=\"480\"></canvas>\n<video id=\"vid\" width=\"640\" height=\"480\" autoplay></video>"
},
"changed": true,
View GetCannyEdges-spec.coffee
noflo = require 'noflo'
unless noflo.isBrowser()
chai = require 'chai' unless chai
GetCannyEdges = require '../components/GetCannyEdges.coffee'
testutils = require './testutils'
else
GetCannyEdges = require 'noflo-image/components/GetCannyEdges.js'
testutils = require 'noflo-image/spec/testutils.js'
View gist:e8e7dd451f1a5f9ba3be
noflo = require 'noflo'
jsfeat = require 'jsfeat'
if noflo.isBrowser()
requestAnimationFrame =
window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
View gist:1f5159bdea2e42f4d008
Last login: Mon Jun 30 15:50:02 on ttys005
Gabimac:Projeto-Classificacao chs$ python -m cProfile -s time classificacao3D.py
Executando banda = 100% para 3 dimensões:
Banda Sakoe-­Chiba: 0 \%
Acertos: 669 Erros: 135
Porcentagem total de acurácia: 83.2089552239 %
Arquivos gerados: matriz_de_confusao_3D_0.png e matriz_de_porcentagens_3D_0.png
128649793 function calls (128640702 primitive calls) in 5999.299 seconds
View gist:11235274
65127931 function calls (64637170 primitive calls) in 72.823 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.000 0.000 <string>:1(<module>)
1 0.000 0.000 0.000 0.000 <string>:1(Match)
1 0.000 0.000 0.000 0.000 <string>:1(Mismatch)
1 0.000 0.000 0.000 0.000 <string>:2(<module>)
1 0.000 0.000 0.000 0.000 <string>:6(Chebyshev)
View gist:6617400
model = models.TCBS
api = model()
def mocked_get(**options):
assert 'crashes/signatures' in options['url']
# expect no os_name parameter encoded in the URL
assert '/os/' not in options['url']
return Response("""
{"crashes": [],
"totalPercentage": 0,
"start_date": "2013-05-10",
View gist:6504095
INSERT INTO raw_crashes (uuid, raw_crash, date_processed) VALUES (12dd97c3-6459-a77f-f474-edb8f0130910, { "uuid": "12dd97c3-6459-a77f-f474-edb8f0130910", "IsGarbageCollecting": "1" }, 2013-09-10 19:51:18.377914)
INSERT INTO raw_crashes (uuid, raw_crash, date_processed) VALUES (c02cb7f1-f051-d5f6-db21-f340c0130910, { "uuid": "c02cb7f1-f051-d5f6-db21-f340c0130910", "IsGarbageCollecting": "1" }, 2013-09-10 19:51:18.377914)
INSERT INTO raw_crashes (uuid, raw_crash, date_processed) VALUES (60597bdc-5dbe-4409-6b38-4309c0130909, { "uuid": "60597bdc-5dbe-4409-6b38-4309c0130909", "IsGarbageCollecting": "1" }, 2013-09-09 19:52:38.070392)
E
======================================================================
ERROR: testx (socorro.unittest.external.postgresql.test_backfill.TestBackfill)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gabi/Desktop/CODE/src/socorro/socorro/unittest/external/postgresql/test_backfill.py", line 51, in setUp
cursor.e
View statsd at middleware_app.py
socorro./aux/.200
socorro./aux/age/.200
socorro./aux/gender/.200
socorro./aux/misconfigured/.405
socorro./aux/foo/bar/names/peter+anders.200
socorro./aux/.200
socorro./aux/.405
socorro./aux/bla.500
socorro./aux/.200
socorro./backfill/backfill_type/adu/update_day/2013-08-22/.200