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
[info] [35m[Appium][39m Welcome to Appium v1.10.0 | |
[info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mDELETE[39m [37m/wd/hub/session/59ffcc44-11ee-4ceb-aea9-33ed3da8c7fd[39m | |
[info] [35m[HTTP][39m [90m{}[39m | |
[debug] [35m[MJSONWP (59ffcc44)][39m Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started | |
[debug] [35m[MJSONWP (59ffcc44)][39m at asyncHandler (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-base-driver/lib/protocol/protocol.js:298:15) | |
[debug] [35m[MJSONWP (59ffcc44)][39m at app.(anonymous function) (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-base-driver/lib/protocol/protocol.js:489:15) | |
[debug] [35m[MJSONWP (59ffcc44)][39m at Layer.handle [as handle_request] (/Applications/Appium.app/Contents/Resources/app/node_modules/express/lib/router/layer.js:95:5) | |
[debug] [35m[MJSONWP (59ffcc44)][39m at next |
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 tensorflow.examples.tutorials.mnist import input_data | |
import tensorflow as tf | |
mnist = input_data.read_data_sets('.', one_hot=True, reshape=False) | |
# parameters | |
learning_rate = 0.00001 | |
epochs = 10 | |
batch_size = 128 |
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 csv | |
import cv2 | |
import numpy as np | |
lines = [] | |
with open('./driving_log.csv') as csvfile: | |
reader = csv.reader(csvfile) | |
for line in reader: | |
lines.append(line) |
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
n = 3 | |
board = [[0] * n for _ in xrange(n)] # 0 for empty slot, 1 for X and -1 for O | |
def show_board(): | |
for i in xrange(len(board)): | |
print '\t' + str(i), | |
print '\n' | |
for row_number, row in enumerate(board): | |
print str(row_number) + '\t', |
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 Foundation | |
import UIKit | |
extension UIColor { | |
// Convenience initialiser to create a UIColor from a Hex Code | |
convenience init?(hex: String) { | |
var hexCode:String = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased() | |
if (hexCode.hasPrefix("#")) { | |
hexCode.remove(at: hexCode.startIndex) |
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.entopix.maui; | |
import java.io.File; | |
import java.util.ArrayList; | |
import org.apache.commons.io.FileUtils; | |
import org.json.simple.JSONArray; | |
import org.json.simple.JSONObject; | |
import weka.core.Utils; |
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
t = int(raw_input()) | |
for i in xrange(1, t + 1): | |
S = raw_input() | |
last_word = S[0] | |
for character in S[1:]: | |
if character >= last_word[0]: | |
last_word = character + last_word | |
else: | |
last_word += character |