Skip to content

Instantly share code, notes, and snippets.

View kosciCZ's full-sized avatar

Jan Koscielniak kosciCZ

View GitHub Profile
@kosciCZ
kosciCZ / init.sh
Created January 5, 2018 22:12
Custom script to setup fresh Centos 7 system
#!/bin/sh
#update system
yum update -y
# install spotify
yum-config-manager --add-repo=https://negativo17.org/repos/epel-spotify.repo
yum install -y spotify-client
#install sublime text
rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
@kosciCZ
kosciCZ / csplainnat.bst
Created December 28, 2017 14:03
Csplainnat style upravený aby řadil podle výskytu
%% $Id$
%% File: `csplainnat.bst' for use with natbib package
%% This is a modification of `plainnat.bst' for Czech references style
%% (According to "CSN ISO 690: Bibliograficke citace. Obsah, forma a struktura").
%% Some modifications are commented, look for the keyword 'CHANGE'
%% For more detailed info use svn repository svn://kraken.pedf.cuni.cz/csplainnat/
%%
%% Original plainnat.bst by Patrick W Daly
%% Modifications by David Mudr{\'{a}}k mudrd8mz@uxit.pedf.cuni.cz
%%
Nahrani listu adres
prefix = Vstup od uzivatele z argumentu
jestli jsou to pismena
z listu adres vyber mesta, ktera zacinaji s timto prefixem
jestli je jedine mesto, ktere zacina timto prefixem
vypis mesto
return
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello World\n');
});
@kosciCZ
kosciCZ / len.lisp
Created April 26, 2017 21:27 — forked from animatedlew/len.lisp
Recursively finding the length of a list in Lisp.
(defun len (list)
(if list
(1+ (len (cdr list)))
0))