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
vendors: | |
- | |
# while read url; do echo -n "$url "; curl -s -L --limit-rate 0 $url | grep -o KUP.TERAZ || echo ""; done | |
name: "abc-rc" | |
currency: PLN | |
url: http://abc-rc.pl | |
shipping: "lambda x: 12.50 if (reduce(lambda y,z: y + z.price, x, 0.0) < 50.0) else 19.00" | |
products: | |
- | |
name: "XT60" |
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 is a code to test timestamp parsing in metar.lua library[1]. | |
-- The original version (up to d99521d5) failed because mktime(3) | |
-- and os.date() expect local time as input. | |
-- | |
-- [1] https://github.com/steelman/metar | |
function print_now(now) | |
print (string.format('now => %d', now)) | |
print (string.format("local: %s",os.date('%Y-%m-%d %H:%M:%S', now))) | |
print (string.format("UTC: %s",os.date('!%Y-%m-%d %H:%M:%S', now))) | |
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
/* -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <stdio.h> | |
#include <errno.h> | |
#include <sys/un.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/select.h> |
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
write(1, "BANG!", 5) = 5 | |
write(1, "\n", 1) = 1 | |
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC, 0) = 29 | |
connect(29, {sa_family=AF_LOCAL, sun_path="/run/wayland-0"}, 17) = 0 | |
gettid() = 4330 | |
epoll_ctl(4, EPOLL_CTL_ADD, 29, {EPOLLIN|EPOLLPRI|EPOLLOUT|EPOLLERR, {u32=3069366600, u64=3069366600}}) = 0 | |
stat64("/usr/share/X11/xkb", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 | |
stat64("/usr/share/X11/xkb", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 | |
geteuid32() = 0 | |
getegid32() = 0 |
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
12 | |
8 | |
2 | |
1 54.343 948.686 | |
2 600.201 167.674 | |
1 3 208.14 | |
1 4 483.96 | |
2 4 600.74 | |
2 5 261.58 | |
2 6 395.61 |
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
set xlabel "PLN" | |
set ylabel "%" | |
set yrange [0:30] | |
set term pngcairo | |
set output "01pit2015.png" | |
plot [0:160000] x < 3089 ? 0 : \ | |
x < 85228 ? 100*(0.18*(x-3089))/x : \ | |
100*(14839+0.32*(x-85228))/x title "Stawka PIT w 2015 r." |
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
# -*- mode: python; coding: utf-8 -*- | |
# Bugs in draft: | |
# + Indentation issues in Section 6. | |
import hashlib | |
class EdDSA: | |
def encode(): | |
pass | |
def __init__(self, phflag=0, ctx=None): |
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
// ==UserScript== | |
// @include http://audycje.tokfm.pl/* | |
// @description Wyciąga bezpośrednie linki do plików mp3 | |
// @author Marek Drwota | |
// ==/UserScript== | |
function zm() { | |
var podcasts_data=document.getElementsByClassName('tok-topwrap__topwrap tok-topwrap__topwrap--podcast'); | |
var linki = null; | |
var i = 0; |
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
;; -*- coding: utf-8 -*- | |
;; Według ustawy o dniach wolnych od pracy z dnia 18 stycznia 1951, z | |
;; późniejszymi zmianami: | |
;; | |
(defcustom holiday-polish-holidays | |
'((holiday-fixed 1 1 "Nowy Rok") | |
(holiday-fixed 1 6 "Święto Trzech Króli") | |
(holiday-easter-etc 0 "Pierwszy dzień Wielkiej Nocy") | |
(holiday-easter-etc 1 "Drugi dzień Wielkiej Nocy") | |
(holiday-fixed 5 1 "Święto Państwowe") |
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
/* http://www.keyboard-layout-editor.com/#/ */ | |
[ | |
{ | |
"backcolor": "#111111", | |
"switchMount": "cherry" | |
}, | |
[ | |
{ | |
"c": "#222222", | |
"t": "#cccccc" |
OlderNewer