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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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 <cstdio> | |
#include <cstdlib> | |
#include <ctime> | |
#include <algorithm> | |
using namespace std; | |
struct SProstokat { | |
unsigned int wysokosc, szerokosc; | |
}; |
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 <iostream> | |
#include <string> | |
#include <stdlib.h> | |
using namespace std; | |
void menu() | |
{ | |
cout << "\tKOLKO I KRZYZYK"<<endl; | |
cout << "Wcisnij:\n1. Wprowadz graczy\n2. GRA\nx. Koniec\n\n"; | |
cout << "\tSTRUKTURA"<<endl; |
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
int **a, i, j; | |
a = (int**)malloc(m*sizeof(int*)); | |
for (i = 0; i < m; i++) | |
a[i] = (int*)malloc(n*sizeof(int); |
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
class Player < Competitor | |
belongs_to :team | |
attr_accessible :birth_date, :nationality | |
def age | |
now = Time.now.utc.to_date | |
now.year - birth_date.year - ((now.month > birth_date.month || (now.month == birth_date.month && now.day >= birth_date.day)) ? 0 : 1) | |
end |
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
function rbenv_shell | |
set -l vers $argv[1] | |
switch "$vers" | |
case '--complete' | |
echo '--unset' | |
echo 'system' | |
command rbenv versions --bare | |
return | |
case '--unset' |
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
set SEGMENT_SEPARATOR '⮀' | |
set SEGMENT_BG | |
set RSTATUS | |
# Create segment of prompt | |
function prompt_segment | |
set -l bg $argv[1] | |
set -l fg $argv[2] | |
[ (count $argv) -gt 2 ]; and set -l content $argv[3..-1] |
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
source 'https://rubygems.org' | |
gem 'sinatra' | |
gem 'slim' | |
gem 'mongoid' | |
gem 'bson_ext' |
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
{ | |
"machines": [ | |
{ | |
"maintenances": [ | |
{ "start": 10, "duration": 10 }, | |
{ "start": 50, "duration": 10 }, | |
] | |
} | |
], | |
"tasks": [ |
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 | |
SEP= | |
SEPE= | |
CLOCK=⌚ | |
CALENDAR=☼ | |
MUSIC=♫ | |
WIDTH=${1} |