Skip to content

Commit 62791e5

Browse files
committed
Merge pull request googlecreativelab#16 from AnSavvides/master
Code consistency
2 parents 7106d2d + 81ade68 commit 62791e5

File tree

2 files changed

+34
-39
lines changed

2 files changed

+34
-39
lines changed

coder-base/apps/wifi/app.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -90,26 +90,26 @@ exports.api_wifi_configure_handler = function( req, res ) {
9090

9191

9292
var wpatemplate = "network={\n" +
93-
"\tssid=\"[ssid]\"\n" +
94-
"\tpsk=\"[password]\"\n" +
95-
"\tscan_ssid=1\n" +
96-
"\tpriority=10\n" +
97-
"}\n";
93+
"\tssid=\"[ssid]\"\n" +
94+
"\tpsk=\"[password]\"\n" +
95+
"\tscan_ssid=1\n" +
96+
"\tpriority=10\n" +
97+
"}\n";
9898

9999
var weptemplate = "network={\n" +
100-
"\tssid=\"[ssid]\"\n" +
101-
"\twep_key0=\"[password]\"\n" +
102-
"\tscan_ssid=1\n" +
103-
"\tkey_mgmt=NONE\n" +
104-
"\tpriority=10\n" +
105-
"}\n";
100+
"\tssid=\"[ssid]\"\n" +
101+
"\twep_key0=\"[password]\"\n" +
102+
"\tscan_ssid=1\n" +
103+
"\tkey_mgmt=NONE\n" +
104+
"\tpriority=10\n" +
105+
"}\n";
106106

107107
var opentemplate = "network={\n" +
108-
"\tssid=\"[ssid]\"\n" +
109-
"\tscan_ssid=1\n" +
110-
"\tkey_mgmt=NONE\n" +
111-
"\tpriority=10\n" +
112-
"}\n";
108+
"\tssid=\"[ssid]\"\n" +
109+
"\tscan_ssid=1\n" +
110+
"\tkey_mgmt=NONE\n" +
111+
"\tpriority=10\n" +
112+
"}\n";
113113

114114

115115
var confentry="";
@@ -198,7 +198,7 @@ exports.api_wifi_list_handler = function( req, res ) {
198198
var access_points = {};
199199
var debug="";
200200

201-
var addHighestSignal = function( ssid, type, signal ) {
201+
var addHighestSignal = function( ssid, type, signal ) {
202202
if ( !access_points[ssid] ) {
203203
access_points[ssid] = { ssid: ssid, type: type, signal: signal };
204204
} else if ( access_points[ssid].signal < signal ) {

findcoder-appengine/api/coder.py

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
1-
/**
2-
* Coder for Raspberry Pi
3-
* A simple platform for experimenting with web stuff.
4-
* http://goo.gl/coder
5-
*
6-
* Copyright 2013 Google Inc. All Rights Reserved.
7-
*
8-
* Licensed under the Apache License, Version 2.0 (the "License");
9-
* you may not use this file except in compliance with the License.
10-
* You may obtain a copy of the License at
11-
*
12-
* http://www.apache.org/licenses/LICENSE-2.0
13-
*
14-
* Unless required by applicable law or agreed to in writing, software
15-
* distributed under the License is distributed on an "AS IS" BASIS,
16-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17-
* See the License for the specific language governing permissions and
18-
* limitations under the License.
19-
*/
1+
# Coder for Raspberry Pi
2+
# A simple platform for experimenting with web stuff.
3+
# http://goo.gl/coder
4+
5+
# Copyright 2013 Google Inc. All Rights Reserved.
6+
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
2018

2119
import webapp2
22-
import os
2320
import time
24-
import logging
2521
import re
2622
import json
27-
import math
2823
from google.appengine.api import memcache
2924

3025
CACHETIME = 120

0 commit comments

Comments
 (0)