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
/** | |
* The module csv is a set of function to parse many format using a delimitter as csv file | |
* Supported format: | |
* - .mat matrix file | |
* - .bed UCSC file | |
* For parse a .csv file use std.csv | |
*/ | |
module bed; | |
import std.conv; |
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
import std.string; | |
import std.stdio; | |
import std.range; | |
mixin template arrayDelegator( alias instance, methods... ){ | |
static if( methods.length > 0 ){ | |
static if( methods[0] == "opIndexAssign" ){ | |
mixin(" | |
void opIndexAssign( " ~ ElementEncodingType!(typeof(instance)).stringof ~ " value, size_t index ){ | |
array[index] = value; |
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
import std.traits; | |
import std.stdio; | |
import std.string; | |
import std.range; | |
import std.ascii; // lowercase | |
static string getFunctionParameterString(T, S)( T ptt, S pstc ) @safe pure nothrow{ | |
enum result = ""; | |
static if( ptt.length > 0 && pstc.length > 0 && ptt.length == pstc.length){ | |
result = ptt[0].stringof ~" "~ pstc.stringof ~" "; |
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
import std.string; | |
import std.stdio; | |
import std.range; | |
import std.lowercase; | |
mixin template delegates( alias instance, methods... ){ | |
static if( methods.length > 0 ){ | |
static if( hasmembers(instance, methods[0]) ){ | |
alias ReturnType!(methods[0]) type; // function/method type returned for first method |
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
$ diff runtime/phobos/std/regex.d ../phobos/std/regex.d | |
184c184 | |
< $(WEB http://unicode.org/reports/tr18/, UTS 18). Specifically: | |
--- | |
> $(WEB unicode.org/reports/tr18/, UTS 18). Specifically: | |
5560a5561,5564 | |
> static if(direction == OneShot.Fwd) | |
> startPc = startPc; | |
> else | |
> startPc = cast(uint)re.ir.length-IRL!(IR.LookbehindEnd); |
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 python3 | |
import sqlite3 | |
import random | |
import string | |
from uuid import uuid4 | |
from typing import List | |
from statistics import mean | |
def random_str(): | |
str_length = random.randint(40,50) |
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 python3 | |
import pyarrow.parquet as pq | |
import pyarrow as pa | |
import random | |
import string | |
from uuid import uuid4 | |
def random_str(): | |
str_length = random.randint(40,50) | |
return ''.join(random.choice(string.ascii_lowercase) for _ in range(str_length)) |
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 python3 | |
import sqlite3 | |
import random | |
import string | |
from uuid import uuid4 | |
from typing import List, Tuple | |
from statistics import mean | |
import pyarrow as pa | |
import pyarrow.parquet as pq |
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 python3 | |
import sqlite3 | |
import random | |
import string | |
from uuid import uuid4 | |
from typing import List | |
from statistics import mean | |
def random_str(): | |
str_length = random.randint(40,50) |
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
@startuml | |
App -> MyPluginInterface : use specialized defined API | |
MyPluginInterface -> MyPlugin : call load_from_directory | |
MyPlugin -> "abi_stable::library::RootModule" : call load_from_directory | |
"abi_stable::library::RootModule" -> MysharedLib : load .so file | |
@enduml |
OlderNewer