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
/* | |
produces performance statistics of loading projectplace.com as a json structure | |
*/ | |
var page = require('webpage').create(), | |
system = require("system"); | |
if (system.args.length != 3) { | |
console.log('Usage: perf_stats.js user password'); | |
phantom.exit(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
from operator import itemgetter | |
def pathOf(skyline): | |
"Produces the path along the skyline" | |
if not skyline: | |
return [] | |
path = [1,skyline[0]] | |
for x_coord in range(1,len(skyline)): | |
last_height = path[-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
package com.example.OfyAndQueues.server; | |
import com.googlecode.objectify.annotation.Entity; | |
import com.googlecode.objectify.annotation.Id; | |
@Entity | |
public class Foo { | |
@Id public Long id; | |
public int bar = 0; | |
} |