Skip to content

Instantly share code, notes, and snippets.

View dbpedia docker
docker run -tid \
--restart unless-stopped \
--name dbpedia-spotlight.en \
--mount source=spotlight-models,target=/opt/spotlight \
-p 2222:80 \
dbpedia/dbpedia-spotlight \
spotlight.sh en
@johnschimmel
johnschimmel / ffmpeg.sh
Created May 21, 2021
ffmpeg embed srt caption
View ffmpeg.sh
ffmpeg -i funtime.mp4 -f srt -i funtime.srt -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng funtime_w_captions.mp4
@johnschimmel
johnschimmel / getFavorites.py
Last active Jan 8, 2019
Download flickr favorites
View getFavorites.py
import flickrapi
import urllib.request
import os.path
import json
# Make it work for Python 2+3 and with Unicode
import io
try:
to_unicode = unicode
except NameError:
View tabCounter.js
var tabCount = 0;
function myFocusFunction() {
tabCount++;
console.log("tab #:", tabCount);
}
var x = document.getElementsByTagName('body');
x[0].addEventListener("focus", myFocusFunction, true);
View user_layout_sample_suggestion.md

User

{
  "name": "John Doe",
  "layouts": 
    { "layout-abc": { 
      "name": "Layout ABC", "active": true }
     },
 { "layout-efg": { 
@johnschimmel
johnschimmel / 1_remote_quick_view.md
Last active Feb 15, 2017
Biobidet BB-2000 remote control commands
View 1_remote_quick_view.md

Button codes

Button (row/col) ENCODING CODE
STOP (1/1) NEC 0xFCFE8000
Posterior Wash (1/2) NEC 0xFCFE4008
F Wash (1/3) NEC 0xFCFEC0C0
Dry wash area (1/4) NEC 0xFCFE2040
Vortex wash ? (2/1) NEC 0xFCFEA0D0
Retract/Nozzle shower (2/2) NEC stopped: FCFEE000
Oscillate during posterior wash(2/2) NEC 0xFCFEE008
View keybase.md

Keybase proof

I hereby claim:

  • I am johnschimmel on github.
  • I am base2john (https://keybase.io/base2john) on keybase.
  • I have a public key whose fingerprint is 3C39 B6B4 9AA2 A91C 883D 2C23 9139 1BB2 3AD2 67D3

To claim this, I am signing this object:

@johnschimmel
johnschimmel / customtheme.less
Last active Jan 6, 2017
diyability custom css for Illdy theme
View customtheme.less
@base: #109026;
#header .top-header .header-logo:hover {
color: @base;
}
#header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li a:hover {
color: @base;
}
@johnschimmel
johnschimmel / BGEventBus.js
Last active Sep 17, 2018
Pub Sub for Handling BG Messages
View BGEventBus.js
/******************************/
/* Bluegrass Event Bus PubSub */
/* from https://davidwalsh.name/pubsub-javascript */
/******************************/
var BGEventBus = (function(){
var topics = {};
var hOP = topics.hasOwnProperty;
return {
subscribe: function(topic, listener) {
@johnschimmel
johnschimmel / chrome_app_js.js
Last active Oct 18, 2018
Chrome App to Webpage communication
View chrome_app_js.js
// be sure to update manifest to allow external connections,
// https://developer.chrome.com/extensions/messaging#external-webpage
/*
"externally_connectable" : {
"matches": ["*://diyability-capacita.appspot.com/*"]
}
*/
// Listen for incoming long lasting PORT connection from Webpage or extension