This file contains hidden or 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
#!/bin/sh -e | |
### BEGIN INIT INFO | |
# Provides: couchdb | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Apache CouchDB init script | |
# Description: Apache CouchDB init script for the database server. |
This file contains hidden or 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 -*- | |
# Zamiast Google image graph api | |
# użyć biblioteki JavaScript [dygraphs](http://dygraphs.com/) | |
require 'json' # zbędne w Rails | |
require 'active_support/core_ext' # ditto | |
require 'net/http' # Ruby Standard Library | |
require 'geo-distance' # dopisać gem 'geo-distance' do Gemfile |
This file contains hidden or 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
# Template file for Rails 3.1+ | |
# | |
# TODO: | |
# see README.md for additional information. | |
def ask_wizard(text) | |
ask "\033[36m" + "wizard".rjust(10) + "\033[0m" + " #{text}" | |
end | |
remove_file 'public/index.html' |
This file contains hidden or 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
<html> | |
<head> | |
<title>The page is temporarily unavailable</title> | |
<style> | |
body { font-family: Tahoma, Verdana, Arial, sans-serif; } | |
</style> | |
</head> | |
<body bgcolor="white" text="black"> | |
<table width="100%" height="100%"> | |
<tr> |
This file contains hidden or 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
/* wypisz zestawienie temperatur Fahrenheita-Celsjusza | |
dla f = 0,20,...300 */ | |
#include <stdio.h> | |
int main() { | |
int fahr, celsius; | |
int lower, upper, step; | |
lower=0; /* dolna granica temperatur */ |
This file contains hidden or 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
/* wypisz zestawienie temperatur Fahrenheita-Celsjusza | |
dla f = 0,20,...300; wersja zmiennopozycyjna */ | |
#include <stdio.h> | |
int main() { | |
float fahr, celsius; | |
int lower, upper, step; | |
lower=0; /* dolna granica temperatur */ |
This file contains hidden or 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
/* wypisz zestawienie temperatur Fahrenheita-Celsjusza | |
dla f = 0,20,...300; pętla for */ | |
#include <stdio.h> | |
int main() { | |
int fahr; | |
for (fahr=0; fahr<=300; fahr=fahr+20) { | |
printf("%3d%6.1f\n",fahr,(5.0/9.0)*(fahr-32)); |
This file contains hidden or 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
/* Obliczamy liczbę PI -- niespodzianki arytmetyki całkowitej. */ | |
#include <stdio.h> | |
double metoda_iv(int liczba_iteracji) | |
{ | |
int licznik; | |
double wynik = 4, znak = -1; | |
liczba_iteracji += 3; |
This file contains hidden or 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
/* wypisz zestawienie temperatur Fahrenheita-Celsjusza | |
argumenty wywołania programu */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char *argv[]) { | |
int lower; /* dolna granica temperatur */ | |
int upper; /* górna granica */ |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
/* wykorzystanie powłoki sh do wywołania programów: | |
popen, system, pclose */ | |
/* obie funkcje powinny być zadeklarowane w stdio.h (a nie są?) */ | |
FILE *popen(const char *, const char *); | |
int pclose(FILE *); |