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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>OSMC</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> | |
<style> | |
html, body { | |
height: 100%; | |
} |
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
-- lucidir/controller/cats.lua | |
module("luci.controller.cats", package.seeall) | |
function index() | |
entry({"cats"}, cbi("cats"), "Feed cats", 30).dependent=false | |
end |
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
public void run() { | |
try { | |
openConnections(); | |
... | |
if (use_expiring) { | |
openConnections(); | |
... | |
dl.setConnection(dbm.getWrite().getConnection()); | |
.. | |
} |
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
#!/bin/sh | |
ON1=`echo "\033[44m\033[37m"` | |
ON2=`echo "\033[34m"` | |
OFF=`echo "\033[0m"` | |
curl https://rent.elmo.ee 2>&1 | sed -n "/metronic_v1.1/,/END JAVASCRIPTS/p" | sed -n -e "s/.*title: \"\(.\+\)\".*/\n$ON1\1$OFF/p" -e "s/.*car_fullname='\" + \"\(.\+\)\" + \"' car_battery='\" + \"\(.\+\)\" + \"' val='\".*/\1 $ON2\2%$OFF/p" | |
echo |
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
// this code had been heavily adjusted for the sake of readability | |
JTable tbl = new JTable(new MyTableModel()); | |
tbl.addMouseListener(new ButCmd(this, ButCmd.CMD_UPDATE)); | |
// [...] | |
JPanel panel = new JPanel(new FlowLayout()); | |
JButton jb; |