Skip to content

Instantly share code, notes, and snippets.

View drzippie's full-sized avatar
👁️‍🗨️

Antonio Cortes (DrZippie) drzippie

👁️‍🗨️
View GitHub Profile
var c = { } ;
var x = graph.V("edu").In('in_sector').In('in_industry').Out('has_skill').Tag("id").ForEach(
function ( d ) {
if ( c[d.id] ) {
c[d.id] ++;
} else {
c[d.id] = 1 ;
}
d.count = c[d.id] ;
# https://bugs.jqueryui.com/ticket/4186
# works for "jquery-ui": "~1.11.4"
# to enable change aspectRatio before created
(($) ->
oldfunc = $.ui.resizable.prototype._setOption
$.ui.resizable.prototype._setOption = (key, value) ->
oldfunc.apply @, arguments
if key is "aspectRatio"
@_aspectRatio = !!value
return
systemManager.classes.SystemValue = function( code , callback ) {
var currentValue = null ;
var callbacks = [] ;
var id = code ;
// El objeto tiene una propiedad code y solo lectura con un valor en el constructor
Object.defineProperty( this , 'code', {
value: code,
@drzippie
drzippie / example.md
Created May 24, 2019 08:47
Basic NER Service using MITIE

curl -d @sample_request.txt -X POST https://ner.morcego.net/ner

response:

[{"tag": "ORGANIZATION", "score": 0.40190129560515164, "label": "Furnival Barristers"}, {"tag": "PERSON", "score": 1.0128972145423198, "label": "Edith Oliv\u00e9 Bocanegra"}, {"tag": "LOCATION", "score": 0.9171091771615874, "label": "Panam\u00e1"}, {"tag": "PERSON", "score": 0.3877786881212515, "label": "Mossack & Fonseca"}, {"tag": "LOCATION", "score": 1.0092007968591041, "label": "Espa\u00f1a"}]% ➜ ~