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 "ViewController.h" | |
@interface ViewController () | |
@end | |
@implementation ViewController | |
- (void)viewDidLoad | |
{ |
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
{ | |
"indent" : { | |
"value": " ", | |
"ArrayExpression": 1, | |
"AssignmentExpression": 1, | |
"BinaryExpression": 1, | |
"ConditionalExpression": 1, | |
"CallExpression": 1, | |
"CatchClause": 1, | |
"ConditionalExpression": 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
#!/bin/sh | |
# | |
# Copied from http://forums.dropbox.com/topic.php?id=38529#post-414344 | |
# Modified by [email protected] (@jaygooby on Twitter) | |
### BEGIN INIT INFO | |
# Provides: dropbox | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 |
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 os | |
import ycm_core | |
flags = [ | |
'-D__IPHONE_OS_VERSION_MIN_REQUIRED=70000', | |
'-resource-dir', | |
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0', | |
'-mios-simulator-version-min=7.0', | |
'-arch i386', | |
'-fblocks', |
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
# open the current folder in Finder's tab | |
function oft() { | |
local folder_name=$1 | |
if ! [[ -d $1 ]]; then | |
# it is a file, get the enclosing folder | |
folder_name="$(dirname "$1")" | |
fi | |
# if no arguments are given, we use the current folder |
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.yanbin.fpworkshop.part4 | |
import arrow.core.Try | |
import arrow.core.Tuple2 | |
import arrow.core.flatten | |
import java.time.LocalDate | |
interface Validation { | |
fun validateAccountNo(no: String): Try<String> | |
fun validateAccountName(name: String): Try<String> |
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
// swift-tools-version:5.2 | |
// The swift-tools-version declares the minimum version of Swift required to build this package. | |
import PackageDescription | |
let package = Package( | |
name: "MyProject", | |
products: [ | |
// Products define the executables and libraries produced by a package, and make them visible to other packages. | |
.library( |
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
function sourcekitLspServerOptions() { | |
// Load the path to the language server from settings | |
const executableCommand = vscode_1.workspace.getConfiguration("sourcekit-lsp").get("serverPath") || | |
vscode_1.workspace | |
.getConfiguration("swift") | |
.get("languageServerPath", "/usr/local/bin/sourcekit-lsp"); | |
const toolchain = vscode_1.workspace | |
.getConfiguration("sourcekit-lsp") | |
.get("toolchainPath"); |
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
InvalidArgumentError: 9 root error(s) found. | |
(0) Invalid argument: {{function_node __inference_train_function_80125}} Compilation failure: Detected unsupported operations when trying to compile graph broadcast_weights_1_assert_broadcastable_is_valid_shape_has_valid_nonscalar_shape_true_79965_const_0[] on XLA_TPU_JIT: DenseToDenseSetOperation (No registered 'DenseToDenseSetOperation' OpKernel for XLA_TPU_JIT devices compatible with node {{node broadcast_weights_1/assert_broadcastable/is_valid_shape/has_valid_nonscalar_shape/has_invalid_dims/DenseToDenseSetOperation}}){{node broadcast_weights_1/assert_broadcastable/is_valid_shape/has_valid_nonscalar_shape/has_invalid_dims/DenseToDenseSetOperation}} | |
[[broadcast_weights_1/assert_broadcastable/is_valid_shape/has_valid_nonscalar_shape]] | |
[[broadcast_weights_1/assert_broadcastable/is_valid_shape]] | |
TPU compilation failed | |
[[tpu_compile_succeeded_assert/_16364550150888184836/_30]] | |
[[TPUReplicate/_compile/_2384856891229734177/_29/_1132]] | |
(1) Invalid argument |
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 Cocoa | |
import Combine | |
var subscriptions = Set<AnyCancellable>() | |
func futureIncrement( | |
integer: Int, | |
afterDelay delay: TimeInterval) -> AnyPublisher<Int, Never> { | |
Deferred { |
OlderNewer