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
package cc.datafabric.infoexchange.streams.gate; | |
import com.salesforce.kafka.test.junit5.SharedKafkaTestResource; | |
import de.bwaldvogel.mongo.MongoServer; | |
import de.bwaldvogel.mongo.backend.memory.MemoryBackend; | |
import org.junit.jupiter.api.Assertions; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.extension.RegisterExtension; | |
import java.net.InetSocketAddress; |
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
## | |
## Возвращает список учредителей ООО ДатаФабрик | |
## | |
from SPARQLWrapper import SPARQLWrapper, JSON | |
sparql = SPARQLWrapper("http://104.155.96.199/blazegraph/sparql") | |
sparql.setQuery(""" | |
PREFIX fts: <https://w3id.org/datafabric.cc/ontologies/fts#> |
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
PREFIX fts: <https://w3id.org/datafabric.cc/ontologies/fts#> | |
SELECT ?ogrn ?primaryCode ?fullname WHERE { | |
?leUri a fts:C101_Russian_Legal_Entity . | |
?addressE a fts:C39_Address_Entity ; | |
fts:p82_refers_to_company ?leUri ; | |
fts:isLatestEntity "true"^^xsd:boolean ; | |
fts:p18_postcode "193231" . |
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
'use strict'; | |
const nl = require('nools'); | |
class Message { | |
constructor() { | |
this.text = ''; | |
} |
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
'use strict'; | |
var Queue = require('bull'), | |
path = require('path'), | |
fs = require('fs'), | |
_ = require('lodash') | |
if (process.argv.length <= 2) { | |
console.log("Usage: " + __filename + " path/to/directory"); | |
process.exit(1); |
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
(function (data) { | |
env.async.waterfall([ | |
env.async.apply( | |
env.model[data.model].findOne, | |
env.lodash.defaults(data.findParams || {}, { | |
name: data.name, | |
value: data.payload.value | |
})), | |
function(found, next) { | |
if (found) { |
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
#_ собственно, сам укус. Почти незаметный. | |
(defn my-comp [& f] #((reduce (fn [x j] [(apply j x)]) %& (into () f)) 0)) | |
(= true ((my-comp zero? #(mod % 8) +) 3 5 7 9)) |
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
source "https://rubygems.org" | |
gem "sqlite3" | |
gem "datamapper" | |
gem "dm-sqlite-adapter" | |
gem "mechanize" | |
gem "pry" | |
gem "em-synchrony" | |
gem 'em-http-request' |
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
; call trello2org interactively | |
; or pragmatically like this: (trello2org "c:/Users/jfurtney/blo-up-2-7.json") | |
(require 'json) | |
(defun convert-trello-json-file-to-org (trello-json-file) | |
(let* ((board (json-read-file trello-json-file)) | |
(board-name (cdr (assoc 'name (cdr board)))) | |
(lists (cdr (assoc 'lists (cdr board)))) |
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
( ($) -> | |
$.fn.outclick = (func) -> | |
clickHandler = (e) => | |
console.log e | |
unless e.target == @ or $(e.target).parents().is(@) | |
@.trigger('outclick') | |
NewerOlder