Skip to content

Instantly share code, notes, and snippets.

# First of all, ensure farming-consumers is up and running
ct_attributes = FactoryBot.build(:es_concept_type).attributes
# in Staging you might need to do this before call Create service:
# transactions (sta):009> ct_attributes["uuid"] = SecureRandom.uuid
ES::ConceptTypes::Create.new(attributes: ct_attributes).call
# check concept type created consumer in Farming (devkit logs farming-consumers)
ct = ES::ConceptType.last
#!/bin/bash
PARAMS=('-m 6 -q 80 -mt')
if [ $# -ne 0 ]; then
PARAMS=$@;
fi
cd $(pwd)
@007lva
007lva / ameba
Created May 19, 2018 15:41
ameba report on anykeyh/clear
# luigi @ x200 in ~/projects/clear on git:master x [17:27:35]
$ ./bin/ameba
Inspecting 97 files.
.....F..............F........FF.............F..F...F.F......FFF..........FF......F....F......F...
src/clear/migration/manager.cr:247:5
UnlessElse: Favour if over unless with else
src/clear/model/reflection/table.cr:42:5
@007lva
007lva / decode?
Created September 19, 2017 17:47
Având în vedere avertiz\U0103rile emise de meteorologi, care anun\U021ba fenomene meteo extreme în Bucure\U0219ti începând cu data de 20 septembrie, Primarul General, Gabriela Firea, face apel la to\U021bi de\U021bin\U0103torii de mijloace de
<script>
document.querySelector('body > div > div.core-Event > div > aside > p:nth-child(7) > a').textContent = "Más información"
</script>
Parcitipar en el concurso
Regístrate ahora
solicitar información
DESCARGAR GUIA
quiero más información
quiero el manual
Reservar plaza
Descargar YA
Quiero mi manual
reserva mi plaza
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
SharedCount = Object.create(HTMLSpanElement.prototype)
PROVIDERS =
facebook:
url: (url) -> "http://graph.facebook.com/#{url}"
counter_field: 'share.share_count'
twitter:
url: (url) -> "http://opensharecount.com/count.json?url=#{url}"
counter_field: 'count'
var applicationConfig = {
local: {
server: {
host: 'localhost',
port: 8889,
clientSecret: 'abcd',
callbackURL: 'def'
}
},
development: {
class String
def starts_with?(prefix)
prefix.respond_to?(:to_str) && self[0, prefix.length] == prefix
end
end
def delete_lines_from_file(filename)
line_arr = File.readlines(filename)
line_arr.delete_at(0)
line_arr.delete_at(0) if line_arr.first == "\n"