Skip to content

Instantly share code, notes, and snippets.

View vertexclique's full-sized avatar
🎛️
https://sptfy.com/QnOi

Theo M. Bulut vertexclique

🎛️
https://sptfy.com/QnOi
View GitHub Profile
@vertexclique
vertexclique / euler345.m
Created September 17, 2011 20:00
Euler 345th problem solution
function [Opt,Value]=euler345(InMatrix)
%Solves the Project Euler 345th Problem
%
%[Opt,Value]=euler(InMatrix)
%InMatrix - a square Opt matrix.
%Opt - the optimal assignment.
%Value - the Opt of the optimal assignment.
[m,n]=size(InMatrix);
@vertexclique
vertexclique / node.cpp
Created November 8, 2011 18:52
Aklım basmamakta şuan
#include <iostream>
using namespace std;
class Node
{
public:
Node(int xx = 0, int yy = 0)
:x(xx), y(yy)
{
}
void setX(int x)
@vertexclique
vertexclique / pi.c
Created December 14, 2011 15:47
Pi hesaplamanın bambaşka bir yolu da var
#include "stdlib.h"
#define _ F-->00 || F-OO--;
long F=00,OO=00;
main(){F_OO();printf("pi = %1.3f\n", 4.*-F/OO/OO);system("PAUSE");}F_OO()
{
_-_-_-_
_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
@vertexclique
vertexclique / definition.h
Created January 10, 2012 22:14
Definition.h
#pragma once
#ifndef DEFINITION_H
#define DEFINITION_H
// Definitions
class Definition
{
const int height = 18;
int map[height][30] =
@vertexclique
vertexclique / ndk_build.sh
Created January 28, 2012 20:43
Android NDK getter for terminalism
#!/bin/bash
cd ~
os=`uname`
dir="./android-ndk-r7/"
if [ -d $dir ]; then
cd ~/terminalism/
~/android-ndk-r7/ndk-build
else
if [ $os = Darwin]; then
curl -C - -O http://dl.google.com/android/ndk/android-ndk-r7-darwin-x86.tar.bz2
/*
* File: main.cpp
* Author: regularlambda
*
* Created on March 4, 2012, 01:23 AM
*/
#include "platform.h"
using namespace std;
@vertexclique
vertexclique / studio-install.tcl
Created March 10, 2012 16:58
Detects GUI I/O for tcl scripting interface
#!/usr/bin/wish
button .test -text TestGUI -command {puts "DONE-Kabul edildi"}
pack .test -padx 20 -pady 20
## Execute binary-setup when you see DONE after clicking to button
## Tikladiktan sonra "Kabul edildi" ciktisini aldiginizda kurulumu calistirabilirsiniz
Tablo oluşturulması
====================
* company
* product
Daha fazla gerekli mi?
** module için table?
** invoiceno için table?
{product} Columns
===============
@vertexclique
vertexclique / caesar-cipher-rot13.clj
Created April 22, 2012 12:39
caesar-cipher-rot13
(defn caesar-en [c]
(let [i (int c)]
(cond
(or (and (>= i (int \a)) (<= i (int \m)))
(and (>= i (int \A)) (<= i (int \M))))
(char (+ i 3))
(or (and (>= i (int \n)) (<= i (int \z)))
(and (>= i (int \N)) (<= i (int \Z))))
(char (- i 3))
:else c)))
@vertexclique
vertexclique / watever
Created May 14, 2012 09:43
binary of watever
#!/usr/bin/env ruby
require 'watever'
Watever.rocket