Skip to content

Instantly share code, notes, and snippets.

View pebsconsulting's full-sized avatar

Georgi Tsochev pebsconsulting

  • PEBS-Management Consulting LTD
  • Sofia
View GitHub Profile
// LOAD needed player
<script async src="https://content.jwplatform.com/libraries/{{YOUR-PLAYER-ID}}.js"></script>
document.addEventListener('DOMContentLoaded', event => {
// workaround to autoplay video
if (document.querySelector('.top-splash .widget__video')) {
document.querySelector('.top-splash .widget__image').click();
}
});
function playlists() {
/*
* Reinforcement Learning
* Policy Gradient
* REINFORCE Algorithm
*
* Fergus McDonald
*
* Environment: 2D Grid
* Actions: Up, Right, Down & Left
*
@pebsconsulting
pebsconsulting / cDataSet.xml
Created January 24, 2019 01:18 — forked from brucemcpherson/cDataSet.xml
gistThat VBA manifest for cDataset and associated modules - see ramblings.mcpher.com for details
<gistThat info="this is a manifest for gistThat VBA code distribution - see ramblings.mcpher.com for details">
<manifest description="cDataset and associated classes and modules" contact="[email protected]">
<gists>
<item1 gistid="3414216" version="" filename="cCell.cls" module="cCell" type="class" />
<item2 gistid="3414216" version="" filename="cDataSet.cls" module="cDataSet" type="class" />
<item3 gistid="3414216" version="" filename="cDataSets.cls" module="cDataSets" type="class" />
<item4 gistid="3414216" version="" filename="cDataColumn.cls" module="cDataColumn" type="class" />
<item5 gistid="3414216" version="" filename="cDataRow.cls" module="cDataRow" type="class" />
<item6 gistid="3414216" version="" filename="cHeadingRow.cls" module="cHeadingRow" type="class" />
<item7 gistid="3414346" version="" filename="" module="usefulStuff" type="module" />
@pebsconsulting
pebsconsulting / gistThat_.vba
Created January 24, 2019 01:18 — forked from brucemcpherson/gistThat_.vba
Bootstrap for gistThat_ code distributor for VBA
'IMPORTANT - CHANGE gtExampleLoad() to include gtDoit() for each Gist you want to load
' bootstrap code to update VBA modules from gists
' all code is in this module - so no classes etc.
' latebinding is used to avoid need for any references
' can be found at https://gist.github.com/3403537
Option Explicit
' v2.04 - 3403537
' if you are using your own gists - change this
Const gistOwner = "brucemcpherson"
@pebsconsulting
pebsconsulting / cJobject.cls
Created January 24, 2019 01:18 — forked from brucemcpherson/cJobject.cls
cJobject class for VBA - converts jSon/excel
'[email protected] :do not modify this line - see ramblings.mcpher.com for details: updated on 8/9/2014 3:09:42 PM : from manifest:3414394 gist https://gist.github.com/brucemcpherson/3414365/raw
' this is used for object serliazation. Its just basic JSON with only string data types catered for
Option Explicit
' v2.19 3414365
'for more about this
' http://ramblings.mcpher.com/Home/excelquirks/classeslink/data-manipulation-classes
'to contact me
' http://groups.google.com/group/excel-ramblings
'reuse of code
' http://ramblings.mcpher.com/Home/excelquirks/codeuse
@pebsconsulting
pebsconsulting / ChangeFromRuntimeToCompile.gradle
Created January 22, 2019 03:34 — forked from bugs84/ChangeFromRuntimeToCompile.gradle
maven-publish plugin. Hook, change in published pom.xml 'runtime' dependency to compile dependency.
publishing.publications.all {
pom.withXml {
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each { it.scope*.value = 'compile'}
}
}
@pebsconsulting
pebsconsulting / README.md
Created January 7, 2019 10:42 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@pebsconsulting
pebsconsulting / keybase.md
Created December 6, 2018 06:27 — forked from joeltg/keybase.md
Keybase verification

Keybase proof

I hereby claim:

  • I am joeltg on github.
  • I am joelg (https://keybase.io/joelg) on keybase.
  • I have a public key ASAT5TnVT1VjbgzrxQPWCTHhakVO_WvhLQ2fWl2pFMnUPwo

To claim this, I am signing this object:

@pebsconsulting
pebsconsulting / persist.js
Created December 6, 2018 06:27
Persist a JSON-LD document to IPLD
const jsonld = require("jsonld")
const dagPB = require("ipld-dag-pb")
const dagOptions = { format: "dag-pb", hashAlg: "sha2-256" }
function parseJSON(bytes, callback) {
const string = bytes.toString("utf8")
let res = null,
error = null
try {
@pebsconsulting
pebsconsulting / notes-roadmap.md
Created December 6, 2018 06:26 — forked from joeltg/notes-roadmap.md
Technical Notes and Roadmap for the Underlay

Technical Notes and Roadmap

Data model

Split into two stages to allow IPLD to develop further:

  1. Now: JSON-LD file-based model. JSON-LD is the future of RDF and it's already popular. The simplest, most future-friendly and semantically-idiomatic model to get the Underlay started now is to publish JSON-LD files that:
  • are flattened relative to one top-level context,
  • address every node with either absolute or fragment-relative URIs (no blank or path-relative nodes),
  • link to other nodes with the IPFS URI scheme dweb:/ipfs/Qm..., using fragments for nodes within documents: dweb:/ipfs/Qm...#node-id
  • use the PROV vocabulary with named graphs to capture "first-class" provenance as JSON-LD itself
  • are persisted to IPFS with the files API, and