Skip to content

Instantly share code, notes, and snippets.

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

@GabiThume
GabiThume / ControlMirobot.coffee
Last active August 29, 2015 14:11
MozFest code
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 October 4, 2014 20:33
Demo Canny Edges
{
"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,
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'
noflo = require 'noflo'
jsfeat = require 'jsfeat'
if noflo.isBrowser()
requestAnimationFrame =
window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
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
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)
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",
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
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