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 [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); |
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> | |
using namespace std; | |
class Node | |
{ | |
public: | |
Node(int xx = 0, int yy = 0) | |
:x(xx), y(yy) | |
{ | |
} | |
void setX(int x) |
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 "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() | |
{ | |
_-_-_-_ | |
_-_-_-_-_-_-_-_-_ | |
_-_-_-_-_-_-_-_-_-_-_-_ | |
_-_-_-_-_-_-_-_-_-_-_-_-_-_ | |
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ |
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
#pragma once | |
#ifndef DEFINITION_H | |
#define DEFINITION_H | |
// Definitions | |
class Definition | |
{ | |
const int height = 18; | |
int map[height][30] = |
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/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 |
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
/* | |
* File: main.cpp | |
* Author: regularlambda | |
* | |
* Created on March 4, 2012, 01:23 AM | |
*/ | |
#include "platform.h" | |
using namespace std; |
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/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 |
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
Tablo oluşturulması | |
==================== | |
* company | |
* product | |
Daha fazla gerekli mi? | |
** module için table? | |
** invoiceno için table? | |
{product} Columns | |
=============== |
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
(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))) |
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 | |
require 'watever' | |
Watever.rocket |