Skip to content

Instantly share code, notes, and snippets.

View tischsoic's full-sized avatar

Jakub Brzegowski tischsoic

View GitHub Profile
@tischsoic
tischsoic / gist:f06a06bf02f8197c3d97
Created January 24, 2015 17:40
Program z funkcjami zmiany systemu liczbowego zapisu liczb
Program ZamianaLiczb;
uses sysutils;
//Funkcja potegujaca, potrzebna do funkcji 'naDecymalny'
Function potegowanie(podstawa, potega : integer) : integer;
var m, p : integer;
begin
potegowanie := 1;
m := potega;
@tischsoic
tischsoic / SortowanieListy
Created January 25, 2015 12:35
Sortowanie bąbelkowe listy podwójnie wiązanej
Program SortowanieListy;
uses CRT, Math;
type
ElementP = ^Element;
Element = record
Nr : integer;
Wartosc : double;
Program TPascala;
uses CRT;
function Silnia(n : integer) : integer;
begin
if n < 2 then Silnia := 1
else Silnia := n * Silnia(n-1);
end;
Program ZamianaLiczb;
uses sysutils;
//Funkcja potegujaca, potrzebna do funkcji 'naDecymalny'
Function potegowanie(podstawa, potega : integer) : integer;
var m, p : integer;
begin
potegowanie := 1;
m := potega;
Program SortowanieListy;
uses CRT, Math;
type
ElementP = ^Element;
Element = record
Nr : integer;
Wartosc : double;
Program LiczbyDoskonale;
function sumaDzielnikow(i : integer) : integer;
var j : integer;
begin
sumaDzielnikow := 0;
for j := 1 to Round(i/2) do
begin
if (i mod j) = 0 then sumaDzielnikow := sumaDzielnikow + j;
end;
Program Kalendarz;
function jakiDzien(d, m, r : integer) : integer;
var n : integer;
begin
n := 6 + d + r - 1900 + (r - 1900) div 4;
case m of
4, 7: ;
@tischsoic
tischsoic / .htaccess
Created October 10, 2015 18:21 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
(function(global, doc, eZ, React, ReactDOM, Translator) {
const SELECTOR_LOCATION_PICKER_BUTTON = '.ez-location-picker__btn';
const SELECTOR_LOCATION_PICKER_LIST = '.ez-location-picker__list';
const SELECTOR_EZ_TAG = '.ez-tag';
const IDS_SEPARATOR = ',';
const token = doc.querySelector('meta[name="CSRF-Token"]').content;
const siteaccess = doc.querySelector('meta[name="SiteAccess"]').content;
const udwContainer = doc.getElementById('react-udw');
class LocationPicker {
{
content {
articles {
edges {
node {
_name # 1) Name
_location {
id # 10) Location ID
remoteId # Location remote ID
invisible # 2) Visibility ??