Skip to content

Instantly share code, notes, and snippets.

var json_data = null;
function get_data(mode){
$.ajax({
url: "/json_nodes",
method: "POST",
data: {func: "init"},
success: function(json){
json_data = json;
//console.log(json_data);
}
@FZX
FZX / gevent.py
Created April 23, 2017 10:43 — forked from scturtle/gevent.py
Let's go HTTPS!
from gevent import monkey
monkey.patch_all()
import bottle
class SSLWebServer(bottle.ServerAdapter):
def run(self, handler):
from gevent.pywsgi import WSGIServer
srv = WSGIServer((self.host, self.port), handler,
certfile='/etc/letsencrypt/live/XXX/fullchain.pem',
<!DOCTYPE html>
<html lang="ka-GE"
xmlns:fb="http://ogp.me/ns/fb#" prefix="og: http://ogp.me/ns#">
<head>
<link rel="stylesheet" href="/wp-content/themes/flex-mag/css/alk-sanet.min.css">
<link rel="stylesheet" href="/wp-content/themes/flex-mag/css/bpg-glaho.min.css">
<meta charset="UTF-8" >
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
@FZX
FZX / userChrome.css
Created September 3, 2022 02:37
FireFox userChrome.css changing url bar and tabs sizes to minimum. to find userChrome.css location go menu->help->more troubleshooting informatio->profile directory click open. Create chrome folder with file named userChrome.css. Enabling userChrome.css file support type about:config toolkit.legacyUserProfileCustomizations.stylesheets to true.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
/* ROOT - VARS */
*|*:root {
--tab-min-height: 30px !important; /* adjust */
--tab-min-width: 30px !important; /* adjust */
}
/* TABS: height */
#tabbrowser-tabs,