Skip to content

Instantly share code, notes, and snippets.

View lnovy's full-sized avatar

Lukáš Nový lnovy

View GitHub Profile
@lnovy
lnovy / index.html
Last active January 16, 2016 07:49
Pirati ucto search
<input type="text" class="st-default-search-input">
<script type="text/javascript">
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
_st('install','ydRtnwX-2KQsWoMfitie','2.0.0');
</script>
@lnovy
lnovy / webcrawler.js
Last active January 7, 2016 09:36 — forked from amoilanen/webcrawler.js
Simple PhantomJS-based web crawler library
//PhantomJS http://phantomjs.org/ based web crawler Anton Ivanov anton.al.ivanov@gmail.com 2012
//UPDATE: This gist has been made into a Node.js module and now can be installed with "npm install js-crawler"
//the Node.js version does not use Phantom.JS, but the API available to the client is similar to the present gist
(function(host) {
function Crawler() {
this.visitedURLs = {};
};
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<definitions name="HelloWorldService"
targetNamespace="http://www.dineshonjava.com/wsdl/HelloWorldService.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.dineshonjava.com/wsdl/HelloWorldService.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<types>
<xsd:schema targetNamespace="http://www.dineshonjava.com/wsdl/HelloWorldService.wsdl"
// ==UserScript==
// @name Facebook? Nevim!
// @description Facebook? Nevim!
//
// @author Lukas Novy <lukas.novy@pirati.cz>
// @namespace http://github.com/krtek-net
//
// @license GPLv3 - http://www.gnu.org/licenses/gpl-3.0.txt
// @copyright Copyright (C) 2015, by Lukas Novy <lukas.novy@pirati.cz>
//
use strict;
use vars qw($VERSION %IRSSI);
use Irssi qw(command_bind signal_add);
use IO::File;
use LWP::Simple;
$VERSION = '0.21';
%IRSSI = (
authors => 'Lukas Novy',
@lnovy
lnovy / gist:9074616
Created February 18, 2014 16:43
Watch latest bitcoinbuilder goxbtc <=> btc trades
watch -d -n 30 'wget -q -O - https://www.bitcoinbuilder.com/trades.php | json_reformat | grep quantity | head'
$idfile = $_GET["id"]; //a to se rovna 1
while (false!==($file = readdir($vypis)))
{
$idcko = ($idcko + 1);
$idckoo = "&idcko=".$idcko."";
$image[$idckoo] = $file;
}
// ukonceni while apod
echo $image[$idfile]; //mi nevypise zhola nic a melo by to vypsat nazev souboru ve slozce, ktery je hned vedle