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
##!/usr/bin/env python | |
##-*- coding: utf-8 -*- | |
import requests | |
from bs4 import BeautifulSoup | |
from objbrowser import browse | |
import os |
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
/* | |
* Copyright (C) 2009-2010 Paul Bender. | |
* | |
* This file is part of eventlircd. | |
* | |
* eventlircd is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 2 of the License, or | |
* (at your option) any later version. | |
* |
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
#!/usr/bin/env python3 | |
################################################# | |
# Determine Anki Database version, usefull to track DB version errors | |
# | |
# | |
# Installation steps for 2.1.44 (can be others versions too): | |
# | |
# 1) Remove previous versions | |
# sudo apt-get remove anki | |
# sudo pip3 uninstall anki |
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
//see http://stackoverflow.com/a/25943182 | |
function insertHTML(newElement) { | |
var sel, range; | |
if (window.getSelection && (sel = window.getSelection()).rangeCount) { | |
range = sel.getRangeAt(0); | |
range.collapse(true); | |
range.insertNode(newElement); | |
// Move the caret immediately after the inserted span | |
range.setStartAfter(newElement); |