Skip to content

Instantly share code, notes, and snippets.

@m0sth8
m0sth8 / jsonhelper.go
Created March 12, 2014 01:20
jsonhelper
// Example
package main;
import (
"jsonhelper"
"fmt"
)
func main(){
jsonValue := []interface {}{
public static Double getNumericValueFromLiteralExpr(GoExpr expr) {
if (expr instanceof GoLiteralExpression){
GoLiteral literal = ((GoLiteralExpression) expr).getLiteral();
if (literal instanceof GoLiteralIdentifier){
if (((GoLiteralIdentifier) literal).isIota()){
Integer iotaValue = ((GoLiteralIdentifier) literal).getIotaValue();
if (iotaValue != null)
return iotaValue.doubleValue();
} else {
...
type MyArray [3]string
type MyArray2 MyArray
func HandleMyArray(a MyArray) {
}
...
@m0sth8
m0sth8 / gist:7413650
Created November 11, 2013 14:04
Stacktrace
Traceback:
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
114. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/contrib/admin/options.py" in wrapper
430. return self.admin_site.admin_view(view)(*args, **kwargs)
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
99. response = view_func(request, *args, **kwargs)
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
52. response = view_func(request, *args, **kwargs)
File "/Users/m0sth8/develop/venv/tulula/lib/python2.7/site-packages/django/contrib/admin/sites.py" in inner