This file contains hidden or 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
(3+1)/3*6=8 |
This file contains hidden or 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 abc import ABCMeta, abstractmethod, abstractproperty | |
class Foo: # In Python 3, you use the syntax | |
_ _metaclass_ _ = ABCMeta # class Foo(metaclass=ABCMeta) | |
@abstractmethod | |
def spam(self,a,b): | |
pass | |
@abstractproperty | |
def name(self): | |
pass |
This file contains hidden or 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 Foo: |
This file contains hidden or 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
let test = testA | |
if test.failed { | |
test.failedReason = on-call.investigate() | |
if (test.failedReason != badCode) { | |
on-call.disableTest(test) | |
} | |
} | |
let reasonForFail = testA.failedReason | |
if testA failed && reason != app code && .. { | |
on-call.disable(testA) |
This file contains hidden or 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
let test = testA | |
with same code base { | |
if (test.passedAtLeastOnce && test.failed) { | |
test.isFlaky = true | |
test.disable() | |
} | |
} |
This file contains hidden or 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
{ | |
"app": "./Sample.app", # Relative path or abs path | |
"scheme-path": "./SampleAppTestScheme.xcscheme", # Relative path or abs path | |
"output-dir": "./build/" # Relative path or abs path | |
} |
This file contains hidden or 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
// | |
// main.m | |
// BlockPlayground | |
// | |
// Created by Keqiu Hu on 3/20/17. | |
// Copyright © 2017 LinkedIn. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or 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
// | |
// main.m | |
// BlockPlayground | |
// | |
// Created by Keqiu Hu on 3/20/17. | |
// Copyright © 2017 LinkedIn. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or 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 __future__ import print_function | |
import tensorflow as tf | |
import sys | |
import time | |
import os | |
import json | |
import logging | |
# cluster specification |
OlderNewer