This file contains hidden or 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 transparency=15 | |
| set background=dark | |
| let g:vimshell_editor_command = '/usr/local/Cellar/macvim/7.4-77/bin/gvim' |
This file contains hidden or 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
| import std.stdio : writeln; | |
| import std.array : array; | |
| import std.regex : regex, match, replace; | |
| import std.file : exists, isDir, getcwd, dirEntries, SpanMode, rename; | |
| import std.conv : to; | |
| import std.algorithm : map, each, filter; | |
| void help(){ | |
| immutable space = " "; | |
| writeln("All move command - Copyright (C) 2015 alphaKAI"); |
This file contains hidden or 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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| // If you want OMP Power | |
| #define OMP_ENABLE | |
| #ifdef OMP_ENABLE | |
| #include <omp.h> | |
| #endif |
This file contains hidden or 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
| /** | |
| Console Grapher | |
| Copyright (C) alphaKAI 2015 http://alpha-kai-net.info | |
| The MIT License | |
| */ | |
| import std.algorithm, | |
| std.range, | |
| std.stdio, |
This file contains hidden or 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
| #encoding:utf-8 | |
| max = 1000 | |
| class Pythagoras | |
| def initialize(a, b, c) | |
| @a = a | |
| @b = b | |
| @c = c | |
| end |
This file contains hidden or 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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| /* List Structure */ | |
| /* int ListStruct */ | |
| #define TYPE int | |
| typedef struct _listNode { | |
| struct _listNode* prevNode; |
This file contains hidden or 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
| import std.stdio; | |
| class ListNode(T){ | |
| ListNode!T nextNode, | |
| prevNode; | |
| T value; | |
| this(T arg){ | |
| value = arg; | |
| } | |
| } |
This file contains hidden or 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
| import std.stdio; | |
| template curry(alias func){ | |
| import std.algorithm, std.conv, std.range, std.traits; | |
| alias argsintuple = ParameterTypeTuple!func; | |
| immutable lambdaStr = (lamArgs => | |
| (temp){ | |
| foreach(i, e; argsintuple) | |
| temp ~= "(" ~ e.stringof ~ " " ~ lamArgs[i] ~ ") => "; |
This file contains hidden or 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
| import std.stdio; | |
| template curry(alias func){ | |
| import std.algorithm, std.conv, std.range, std.traits; | |
| alias argsintuple = ParameterTypeTuple!func; | |
| immutable lambdaStr = (lamArgs => | |
| (temp){ | |
| foreach(i, e; argsintuple) | |
| temp ~= "(" ~ e.stringof ~ " " ~ lamArgs[i] ~ ") => "; |
This file contains hidden or 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
| import std.stdio; | |
| int f(int a, int d, int n){ | |
| return a + d * (n - 1); | |
| } | |
| int sumf(int n, int function(int) fx){ | |
| return n * (fx(1) + fx(n)) / 2; | |
| } |