Skip to content

Instantly share code, notes, and snippets.

SELECT r.specific_name AS id,
r.routine_schema AS Schema,
r.routine_name AS Name,
r.data_type AS ReturnType,
r.routine_type AS RoutineType,
(SELECT STRING_AGG(x.param, E'\n')
FROM (SELECT p.parameter_mode || ';' || p.parameter_name || ';' || p.data_type AS param
FROM information_schema.parameters p
WHERE p.specific_name = r.specific_name
ORDER BY p.ordinal_position) x) AS InputArgs
-- stored proc mapping sql
WITH ExplicitRoutines AS
(
SELECT
ROUTINE_SCHEMA AS [Schema]
,ROUTINE_NAME AS Name
,ROUTINE_TYPE
,DATA_TYPE
,ROUTINE_SCHEMA AS BaseObjectSchema
V3010 The return value of function 'Zip' is required to be utilized. DaemonMsgCreateSerializerSpec.cs 100
V3001 There are identical sub-expressions 'equalTestActorRef' to the left and to the right of the '==' operator. ActorRefSpec.cs 28
V3001 There are identical sub-expressions 'equalTestActorRef' to the left and to the right of the '!=' operator. ActorRefSpec.cs 29
V3061 Parameter 'actor' is always rewritten in method body before being used. PropsSpec.cs 104
V3022 Expression 'readPolicy.Item1' is always not null. EndpointManager.cs 629
V3080 Possible null dereference. Consider inspecting 'pass'. EndpointManager.cs 733
V3022 Expression 'failedActor != null' is always true. ActorCell.FaultHandling.cs 62
V3010 The return value of function 'ResolveReplyTo' is required to be utilized. Futures.cs 43
V3061 Parameter 'actor' is always rewritten in method body before being used. Props.cs 630
V3061 Parameter 'actor' is always rewritten in method body before being used. Props.cs 658
@maxim-s
maxim-s / RemoteDaemonGetChild.cs
Created December 20, 2015 06:30
RemoteDaemon GetChild implementation
public override IActorRef GetChild(IEnumerable<string> name)
{
string[] parts = name.ToArray();
if (!parts.Any())
return this;
var n = parts.First();
if (string.IsNullOrEmpty(n))
return this;
@maxim-s
maxim-s / getPackageClasses
Created December 22, 2014 10:18
scala how to get all classes based on ParentModule in the package and creating theirs instances
def getModules(pack:String,args: AnyRef*)(ctor: Int = 0): Seq[ParentModule] = {
var result = ListBuffer[ParentModule]()
val cl = Thread.currentThread.getContextClassLoader
val mirror = runtimeMirror(cl)
val res = cl.getResource(pack.replace('.','/'))
//HACK looking for files from package folder just for classloader
for(f<-Directory(Path(res.getFile)).files){
if (!f.name.contains("$anonfun$"))
mirror.staticClass(pack +"."+ f.name.replace(".class",""))
<ReactBootstrap.Pager>{
for page in [1..@state.pagination.num_pages]
if page == @state.pagination.current_page
<ReactBootstrap.PageItem disabled href="##{page}">{page}</ReactBootstrap.PageItem>
else
<ReactBootstrap.PageItem eventKey={page} onSelect={@handleSelect} href="##{page}">{page}</ReactBootstrap.PageItem>
}
</ReactBootstrap.Pager>