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 alpine | |
| RUN apk add --no-cache openssh-client | |
| ADD ./entrypoint.sh /entrypoint.sh | |
| RUN chmod +x /entrypoint.sh | |
| VOLUME [ "/root/.ssh" ] | |
| ENTRYPOINT [ "./entrypoint.sh" ] |
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
| var token = "a JWT token" | |
| // ... | |
| var req = URLRequest(url: URL(string: "\(api_uri)/auth/refresh")!) | |
| req.httpMethod = "POST" | |
| req.addValue("Authorizetion", forHTTPHeaderField: token) | |
| URLSession.shared.rx.data(request: req) | |
| .map{ try! JSONDecoder().decode(TokenResult.self, from: $0) } |
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 keras.models import Sequential | |
| from keras.layers import Dense | |
| import numpy | |
| numpy.random.seed(7) | |
| dataset = numpy.loadtxt("pima-indians-diabetes.csv", delimiter=",") | |
| # 因為不太懂這樣的用法,所以用下面的程式來實驗... | |
| X = dataset[:,0:8] | |
| Y = dataset[:,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
| // | |
| // AppDelegate.swift | |
| // Signbook | |
| // | |
| // Created by 默司 on 2018/3/16. | |
| // Copyright © 2018年 CCMOS. All rights reserved. | |
| // | |
| import UIKit | |
| import IQKeyboardManagerSwift |
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
| gcc -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -shared obj/gemm.o obj/utils.o obj/cuda.o obj/deconvolutional_layer.o obj/convolutional_layer.o obj/list.o obj/image.o obj/activations.o obj/im2col.o obj/col2im.o obj/blas.o obj/crop_layer.o obj/dropout_layer.o obj/maxpool_layer.o obj/softmax_layer.o obj/data.o obj/matrix.o obj/network.o obj/connected_layer.o obj/cost_layer.o obj/parser.o obj/option_list.o obj/detection_layer.o obj/route_layer.o obj/upsample_layer.o obj/box.o obj/normalization_layer.o obj/avgpool_layer.o obj/layer.o obj/local_layer.o obj/shortcut_layer.o obj/logistic_layer.o obj/activation_layer.o obj/rnn_layer.o obj/gru_layer.o obj/crnn_layer.o obj/demo.o obj/batchnorm_layer.o obj/region_layer.o obj/reorg_layer.o obj/tree.o obj/lstm_layer.o obj/l2norm_layer.o obj/yolo_layer.o -o libdarknet.so -lm -pthread `pkg-config --libs opencv` | |
| Package opencv was not found in the pkg-config search path. | |
| Perhaps you should add the directory containing `opencv.pc' | |
| to th |
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
| #!/bin/bash | |
| apt-get update | |
| apt-get install -y git-core | |
| curl -sSL get.docker.com | sh - | |
| git clone -b mujson https://github.com/mosluce/shadowsocksr.git | |
| cd shadowsocksr |
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
| version: '3' | |
| services: | |
| db: | |
| image: mysql:5.6 | |
| container_name : sspanel-db | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: yourpass | |
| MYSQL_DATABASE: sspanel |
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
| public Circle(Vector3 center, Vector3 normal, int polyAmount, float radius) | |
| { | |
| this.normal = normal.normalized; | |
| this.center = center; | |
| var z = Vector3.forward; | |
| var dot = Vector3.Dot(z, normal); | |
| var y = z - dot * normal; | |
| if (dot == 1 || dot == -1) |
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
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.Networking; | |
| public class LoadJson : MonoBehaviour | |
| { | |
| // Use this for initialization | |
| IEnumerator Start() |
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
| import React, { PureComponent } from "react"; | |
| import { | |
| View, | |
| Text, | |
| TouchableWithoutFeedback, | |
| Picker, | |
| PickerItemProps, | |
| Modal, | |
| Animated, | |
| TouchableWithoutFeedbackProps, |