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 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 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 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 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 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 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 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 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
############################## | |
############################## | |
robot_in_the_cloak: "Roboter im Regenmantel" | |
site_title: "#iOSonRailsConf 2013" | |
site_description: "Alushta Konferenz für Ruby on Rails und iOS-Entwickler aus aller Welt, die im Frühjahr 2013 stattfinden wird." | |
site_description_short: "Ruby on Rails und iOS-Entwickler Alushta Konferenz 2013." | |
site_keywords: "Ruby, Rails, ios, Entwickler, Konferenz, 2013, Web, Handy, iphone, ipad, ipod" |
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
#!/bin/sh | |
times=1000000 # count | |
main="int main(){" | |
loop=" for(int i = 0; i < $times; i++) " | |
end=" return 0;}" | |
CXX=g++ | |
FLAGS=-O2 | |
file=test.cpp # outfile |
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
" Infect Vim with pathogen | |
call pathogen#infect() | |
" Use ZSH as Vim shell to get rid of strange errors | |
set shell=/bin/zsh | |
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible |