Skip to content

Instantly share code, notes, and snippets.

View maidis's full-sized avatar
🐢
Progressing

Anıl Özbek maidis

🐢
Progressing
View GitHub Profile
Paket test ediliyor...
Kuruluyor...
Sandbox açık inşa...
DEBUG: "install -m0755 -o root -g root exe/bitfighter /var/pisi/bitfighter-015a-1/install/opt/bitfighter" dönüş değeri 0
"installer/screenshots/*" ile eşleşen bir dosya bulunamadı.
Traceback (most recent call last):
File "/home/maidis/Gelistirme/paketler-maidis/games/bitfighter/actions.py", line 19, in install
pisitools.insinto("/opt/bitfighter/screenshots", "installer/screenshots/*")
File "/usr/lib/pardus/pisi/actionsapi/pisitools.py", line 245, in insinto
raise FileError(_("No file matched pattern \"%s\".") % sourceFile)
@maidis
maidis / actions.py
Created April 22, 2011 13:05
Örnek bi actions.py dosyası
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
// Başlıklar
#include <SFML/Graphics.hpp>
int main()
{
// Tarama penceremizi oluşturalım
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Grafik");
// birkaç değişken ekleyelim
int xxx, yyy, zzz = 0;
#include <SFML/Window.hpp>
#include <GL/glut.h>
int main()
{
sf::Window App(sf::VideoMode(800, 600, 32), "SFML OpenGL");
sf::Clock Clock;
// Renk ve derinlik temizleme değerlerini ayarla
@maidis
maidis / sadece-zaman.cpp
Created March 5, 2011 19:55
zaman örneği
#include <SFML/Window.hpp>
int main()
{
// Ana penceremizi oluşturalım
sf::Window App(sf::VideoMode(800, 600, 16), "SFML Zaman Zaman");
// En yüksek kareoranını elde etmek için dikey eşzamanlamayı kapatalım
App.EnableVerticalSync(false);
#include <iostream>
#include <boost/lexical_cast.hpp>
int main()
{
int i = 5;
std::string foo = boost::lexical_cast<std::string>(i);
std::cout << i + i << std::endl;
std::cout << foo + foo << std::endl;
}
#include <iostream>
#include <sstream>
template <class T> inline std::string to_string (const T& t)
{
std::stringstream ss;
ss << t;
return ss.str();
}
#include <iostream>
#include <sstream>
int main()
{
int i = 5;
std::string s;
std::stringstream out;
out << i;
@maidis
maidis / fare-nerede.cpp
Created February 26, 2011 00:38
farenin yerini söyleyen kendi çapında bir başka örnek
#include <SFML/Window.hpp>
#include <iostream>
int main()
{
// Ana pencereyi oluştur
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Söyle Bana Fare Nerde");
// Girdi yöneticisine oluşturduğumuz pencereyle ilişkilendirilmiş bir referans al
// ve sonraki kullanımlar için sakla
@maidis
maidis / daha-normal-pencere.cpp
Created February 25, 2011 13:30
tam ekran bir pencere örneği
#include <SFML/Window.hpp>
int main()
{
// Ana pencereyi oluştur
sf::Window App(sf::VideoMode::GetDesktopMode(), "SFML Penceresi", sf::Style::Fullscreen);
// Ana döngüye başla
bool Running = true;
while (Running)