just the bare necessities of state management.
Hotlink it from https://unpkg.com/valoo.
just the bare necessities of state management.
Hotlink it from https://unpkg.com/valoo.
| // O2 Minipops rhythm box (c) DSP Synthesizers 2016 | |
| // Free for non commercial use | |
| // http://janostman.wordpress.com | |
| #include <avr/interrupt.h> | |
| #include <avr/io.h> | |
| #include <avr/pgmspace.h> |
| def fn(pattrn, table, text, _range): | |
| x = 0 | |
| if _range[1] <= len(text): | |
| x = 1 | |
| for i in range(_range[0], _range[1]): | |
| if text[_range[1] - x] != pattrn[len(pattrn) - x]: | |
| _ch = text[_range[1] - x] | |
| r = [x for x in table if x[1] == _ch] | |
| _shift = len(pattrn) if not r else r[0][0] | |
| _shift = _range[1] + (_shift + 1 if _shift < 1 else _shift) |
| var xLBD = {}; | |
| xLBD.c = function (){ | |
| xLBD.f = unescape(document.querySelector("[flashvars]").getAttribute("flashvars")).substring(7); | |
| xLBD.f = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data[0].hd_src; | |
| xLBD.a = "<div style='position:absolute;top:100px;height:300px;left:15%;background:#fff;border:10px solid #000;font-size:5em;padding:100px;'>Click <a download='lookback.mp4' href='"+xLBD.f+"'>here<\/a> to download your lookBack video.</div>"; | |
| document.body.innerHTML += xLBD.a; | |
| } | |
| if(document.readyState == "complete") | |
| xLBD.c(); | |
| else window.onload = xLBD.c; |
| #!/usr/bin/env python | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| """ |
| class Backend(object): | |
| def __init__(self): | |
| engine = create_engine("mysql://{0}:{1}@{2}/{3}".format(options.mysql_user, options.mysql_pass, options.mysql_host, options.mysql_db) | |
| , pool_size = options.mysql_poolsize | |
| , pool_recycle = 3600 | |
| , echo=options.debug | |
| , echo_pool=options.debug) | |
| self._session = sessionmaker(bind=engine) | |
| @classmethod |
| ### Testing if the client is a mobile or a desktop. | |
| ### The selection is based on the usual UA strings for desktop browsers. | |
| ## Testing a user agent using a method that reverts the logic of the | |
| ## UA detection. Inspired by notnotmobile.appspot.com. | |
| map $http_user_agent $is_desktop { | |
| default 0; | |
| ~*linux.*android|windows\s+(?:ce|phone) 0; # exceptions to the rule | |
| ~*spider|crawl|slurp|bot 1; # bots | |
| ~*windows|linux|os\s+x\s*[\d\._]+|solaris|bsd 1; # OSes |
| worker_processes 2; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| } |