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
upstream appserver { | |
server localhost:8000; | |
server localhost:8001; | |
server localhost:8002; | |
server localhost:8003; | |
server localhost:8004; | |
} | |
server { | |
listen 80; |
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
“class StepCounter { | |
var totalSteps: Int = 0 { | |
willSet(newTotalSteps) { | |
println("About to set totalSteps to \(newTotalSteps)") | |
} | |
didSet { | |
if totalSteps > oldValue { | |
println("Added \(totalSteps - oldValue) steps") | |
} | |
} |
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 Point { | |
var x = 0.0, y = 0.0 | |
} | |
struct Size { | |
var width = 0.0, height = 0.0 | |
} | |
struct Rect { | |
var origin = Point() | |
var size = Size() | |
var center: Point { |
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
- (void)addAnnotationsInBoundingBox:(RMProjectedRect)aBoundingBox | |
toMutableArray:(NSMutableArray *)someArray | |
createClusterAnnotations:(BOOL)createClusterAnnotations | |
withProjectedClusterSize:(RMProjectedSize)clusterSize | |
andProjectedClusterMarkerSize:(RMProjectedSize)clusterMarkerSize | |
findGravityCenter:(BOOL)findGravityCenter | |
{ | |
if (createClusterAnnotations) | |
{ | |
double halfWidth = _boundingBox.size.width / 2.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
compile: | |
[javac] Compiling 1 source file to /root/openfire/openfire_src/work/classes | |
[javac] /root/openfire/openfire_src/src/java/org/jivesoftware/openfire/auth/DefaultAuthProvider.java:106: cannot find symbol | |
[javac] symbol : variable CharSet | |
[javac] location: class org.jivesoftware.openfire.auth.DefaultAuthProvider | |
[javac] String jpassword = new String(Hex.encodeHex(cript.digest()), CharSet.forName("UTF-8")); | |
[javac] ^ | |
[javac] /root/openfire/openfire_src/src/java/org/jivesoftware/openfire/auth/DefaultAuthProvider.java:106: internal error; cannot instantiate java.lang.String.<init> at java.lang.String to () | |
[javac] String jpassword = new String(Hex.encodeHex(cript.digest()), CharSet.forName("UTF-8")); |
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
compile: | |
[javac] Compiling 1 source file to /root/openfire/openfire_src/work/classes | |
[javac] /root/openfire/openfire_src/src/java/org/jivesoftware/openfire/auth/DefaultAuthProvider.java:64: cannot find symbol | |
[javac] symbol : class NoSuchAlgorithmException | |
[javac] location: class org.jivesoftware.openfire.auth.DefaultAuthProvider | |
[javac] public static String SHAsum(byte[] convertme) throws NoSuchAlgorithmException{ | |
[javac] ^ | |
[javac] /root/openfire/openfire_src/src/java/org/jivesoftware/openfire/auth/DefaultAuthProvider.java:70: cannot find symbol | |
[javac] symbol : class Formatter |
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
'urlManager'=>array( | |
'urlFormat'=>'path', | |
'showScriptName'=>false, | |
'caseSensitive'=>false, | |
'rules'=>array( | |
) | |
), |
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
"F16": | |
"F24":{ | |
"xstart":0.593, | |
"ystart":0.388, | |
"xdir":-0.191, | |
"ydir":-0.060, | |
"seats":24, | |
"rows":17, | |
"lowrow":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
//Standard row data | |
var std_seats = [ | |
{ | |
"section_name": "A", | |
"row_name": "1", | |
"seat_num": "1", | |
"last_seat": "20", | |
"num_seats": "20" | |
}, | |
{ |
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
class FileManager | |
private $user | |
FileManager(int userid [,mixed options]) instantiates with a user name, should call the function setUser(id userid) below | |
FileManager(str user [,mixed options]) instantiates with a user name, should call the function below | |
setUser(str user [, mixed options]) - Calls the function below after fetching the ID of the user | |
setUser(int userid [, mixed options]) - Should set the user variable, and check to see if the current user is the one provided. This should clear all data for this object upon setting | |
getUser() - Return the user model that is loaded for this FM. |