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
Sub Uncrustify() | |
Dim proc As New System.Diagnostics.Process() | |
If (DTE.ActiveDocument IsNot Nothing) Then | |
Dim doc As Document = DTE.ActiveDocument.Object("Document") | |
Dim procStart As New System.Diagnostics.ProcessStartInfo() | |
Dim outputFile As String = doc.FullName + ".uncrustify" | |
procStart.Arguments = "-c \rrdeV\Vperi\repos\unCrustify\rr.cfg -o " + outputFile + " -f " + doc.FullName |
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
def reportError = { msg, e -> | |
new StreamingMarkupBuilder( ).bindNode { | |
exception( message: e.message, detail: msg ) { | |
stackTrace { | |
e?.stackTrace?.each { | |
at( file: it?.fileName, className: it?.className, method: it?.methodName, | |
line: it?.lineNumber ) { | |
} | |
} | |
} |
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
# kafka server | |
description "Kafka Server" | |
start on filesystem runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
umask 022 |
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
//root build.gradle | |
ext { | |
javaVersion = JavaVersion.VERSION_1_7 | |
} | |
Project.metaClass.prop { name -> | |
delegate.with { | |
ext.properties.containsKey( name ) ? | |
ext.properties[ name ] : parent?.prop( name ) | |
} |
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
1001 -- :Test/init() | |
1001 -- :Test/test1() | |
1002 -- ..:Test/test1:X/init() | |
1003 -- ..:Test:X/init() | |
1001 -- ..:Test/test2() | |
1003 -- ..:Test:X/deinit() | |
1004 -- :X/init() | |
1001 -- :Test/test2() | |
1004 -- :X/deinit() |
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
struct S0<V> { | |
typealias F = () -> V | |
} | |
struct S1<T1,V>{ | |
typealias F = (T1) -> V | |
} | |
//0, 0 | |
func curry<T1, V>(f: S1<T1, V>.F, a1:T1) -> S0<V>.F { |
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 Foundation | |
struct Builder { | |
typealias Attributes = Dictionary<String, AnyObject> | |
typealias Block = () -> () | |
typealias Visitor = (Node) -> () | |
class Node { | |
var name : String | |
var parent: Node? { didSet { level = parent!.level + 1} } |
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
// | |
// KVOTests.swift | |
// SwiftStuff | |
// | |
// Created by Venkat Peri on 8/11/14. | |
// Copyright (c) 2014 vperi. All rights reserved. | |
// | |
import Cocoa | |
import XCTest |
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
nconf = require 'nconf' | |
cson = require 'cson' | |
csonFormat = | |
stringify : cson.stringifySync | |
parse : cson.parseSync | |
nconf.file file : "#{__dirname}/test.cson", format : csonFormat | |
console.log nconf.get "a" |
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
#remove stopped containers | |
docker ps -a|grep Exited|cut -d' ' -f1|xargs docker rm $1 | |
#remove untagged images | |
docker images|grep none|awk '{print $3}'|xargs docker rmi $1 |
OlderNewer