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 python | |
import plistlib | |
import json | |
import tkFileDialog | |
import re | |
import sys | |
file_to_open = tkFileDialog.askopenfilename(message="Select an existing plist or json file to convert.") | |
converted = None |
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
// Copyright 2011 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// HTTP reverse proxy handler | |
package goengine | |
import ( | |
"io" |
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 redis | |
import web | |
SESSION = 'SESSION:' | |
class RedisStore(web.session.Store): | |
"""Store for saving a session in redis: | |
import rediswebpy | |
session = web.session.Session(app, rediswebpy.RedisStore(), initializer={'count': 0}) |
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
package anything_test | |
//go:generate protoc --go_out=. anything.proto | |
import ( | |
"reflect" | |
"testing" | |
proto "github.com/golang/protobuf/proto" | |
"github.com/golang/protobuf/ptypes" |
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
syntax = "proto3"; | |
package anything; | |
import "google/protobuf/any.proto"; | |
message AnythingForYou { | |
google.protobuf.Any anything = 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
// Code generated by protoc-gen-go. | |
// source: anything.proto | |
// DO NOT EDIT! | |
/* | |
Package anything is a generated protocol buffer package. | |
It is generated from these files: | |
anything.proto |
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/python | |
''' | |
This script will upload the contents of a directory to a document in | |
CouchDB. It preserves all of the directory structures and is great | |
for uploading static websites to be served from CouchDB. | |
''' | |
import tkFileDialog | |
import couchdbkit | |
import os | |
import sys |
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
package main | |
import "fmt" | |
type LLNode struct { | |
data string | |
next *LLNode | |
} | |
type LList struct { |
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
# make sure to replace "projectid" below with the project ID configured in the Google Developer Console | |
application: projectid | |
version: 1 | |
runtime: go | |
api_version: go1 | |
module: module2 | |
handlers: | |
- url: /.* | |
script: _go_app |
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
# Dockerfile extending the generic Go image with application files for a | |
# single application. | |
FROM gcr.io/google_appengine/golang | |
COPY . /go/src/app | |
RUN go-wrapper download | |
RUN go-wrapper install -tags appenginevm |
NewerOlder