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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'open-uri' | |
require 'cgi' | |
require 'hpricot' | |
require 'id3lib' | |
require 'dbus' | |
def lyrics(title,artist) |
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<vector> | |
#include<algorithm> | |
#include<boost/tokenizer.hpp> | |
#include<boost/foreach.hpp> | |
using namespace std; | |
using namespace boost; | |
#define foreach BOOST_FOREACH | |
int main(){ |
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
#!/usr/bin/env ruby | |
class Brainfuck | |
# Ruby Brainfuck interpreter | |
# (C) Scott Olson <scott@scott-olson.org> | |
# MIT License | |
attr_accessor :script, :stdin, :stdout | |
@@allowed = '<>+-.,[]#' | |
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 <fstream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
struct Fraction{ | |
int num; | |
int den; | |
}; |
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 <fstream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
int main(){ | |
ofstream out ("numtri.out"); | |
ifstream in ("numtri.in"); | |
int rows; in >> rows; |
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 <vector> | |
#include <iostream> | |
using namespace std; | |
int main(){ | |
int N = 42; | |
int top = N*(N+1)/4; | |
vector< vector<int> > dyn; | |
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
iyi ki dogdun riza |
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
sqlite3_stmt *Sqlite3_prepare(sqlite3 *this, char *query) { | |
sqlite3_stmt *res = ((sqlite3_stmt *) (NULL)); | |
int i = (int) Sqlite3__prepare(this, query, ((int) ((size_t) String_length(query))), &res, ((char **) (NULL))); | |
String_println(Int_toString(i)); | |
return res; | |
} | |
void _sqlite3_load(){ | |
static bool __done__ = false; | |
if (!__done__){ |
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
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 2 | |
at org.ooc.frontend.model.NodeList.get(NodeList.java:129) | |
at org.ooc.backend.cdirty.CallWriter.writeGenericCallArgs(CallWriter.java:176) | |
at org.ooc.backend.cdirty.CallWriter.writeCallArgs(CallWriter.java:127) | |
at org.ooc.backend.cdirty.CallWriter.writeMember(CallWriter.java:233) | |
at org.ooc.backend.cdirty.CGenerator.visit(CGenerator.java:171) | |
at org.ooc.frontend.model.MemberCall.accept(MemberCall.java:37) | |
at org.ooc.backend.cdirty.ControlStatementWriter.writeWhile(ControlStatementWriter.java:34) | |
at org.ooc.backend.cdirty.CGenerator.visit(CGenerator.java:259) | |
at org.ooc.frontend.model.While.accept(While.java:15) |
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 CD { | |
private String name; | |
public boolean rented; | |
public CD(string Name){ | |
name = Name; | |
} | |
public string getName(){ return name; } | |
public boolean rent(){ |
OlderNewer