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.Threading.Tasks; | |
| using UnityEditor; | |
| using UnityEngine; | |
| namespace Experiments.Networking { | |
| public class Networking : Editor { | |
| [MenuItem("Experiments/Send Request")] | |
| public static async Task SendRequest() { |
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.Reflection; | |
| using System.Threading; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public static class EditorAsyncPump { | |
| [InitializeOnLoadMethod] | |
| static void Initialize() { | |
| Debug.Log("Pump Initialize"); | |
| EditorApplication.update += ExecuteContinuations; |
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
| #include <SPI.h> | |
| #include <MFRC522.h> // 引用程式庫 | |
| #define RST_PIN A0 // 讀卡機的重置腳位 | |
| #define SS_PIN 10 // 晶片選擇腳位 | |
| #define BUZZ_PIN 8 // 蜂鳴器腳位 | |
| MFRC522 mfrc522(SS_PIN, RST_PIN); // 建立MFRC522物件 | |
| MFRC522::MIFARE_Key key; // 儲存金鑰 |
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
| // | |
| // Layout.swift | |
| // App | |
| // | |
| // Created by 默司 on 2017/12/1. | |
| // Copyright © 2017年 GTS. All rights reserved. | |
| // | |
| import UIKit |
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
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| serial "go.bug.st/serial.v1" | |
| ) |
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 ubuntu:16.04 | |
| # Essential packages | |
| RUN apt-get update | |
| RUN apt-get install -y build-essential binutils-doc autoconf flex bison libjpeg-dev | |
| RUN apt-get install -y libfreetype6-dev zlib1g-dev libzmq3-dev libgdbm-dev libncurses5-dev | |
| RUN apt-get install -y automake libtool libffi-dev curl git tmux gettext | |
| # Python | |
| RUN apt-get install -y python3 python3-pip python-dev python3-dev python-pip virtualenvwrapper |
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
| console.log(1) | |
| step1(x, function(value1){ | |
| console.log(2) | |
| //do something... | |
| step2(y, function(value2){ | |
| console.log(3) | |
| //do something... | |
| step3(z, function(value3){ | |
| //do something... | |
| console.log(4) |
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
| # build stage | |
| FROM golang:alpine AS build-env | |
| RUN apk add --no-cache git bzr gcc musl-dev | |
| RUN mkdir -p /go/src/klcc/auth | |
| WORKDIR /go/src/klcc/auth | |
| COPY . . | |
| RUN go get -u github.com/kardianos/govendor |
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
| pipeline: | |
| release: | |
| image: plugins/ecr | |
| access_key: ${ACCESS_KEY} | |
| secret_key: ${SECRET_KEY} | |
| repo: ${ACCOUNT_ID}.dkr.ecr.us-west-1.amazonaws.com/klcc/klcc-api | |
| registry: ${ACCOUNT_ID}.dkr.ecr.us-west-1.amazonaws.com | |
| region: us-west-1 | |
| tags: | |
| - latest |
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 git openssh-client bash | |
| # RUN ssh-keygen -q -f /root/.ssh/id_rsa -P "" | |
| COPY ./ssh /root/.ssh | |
| RUN git clone git@github.com:mosluce/some-private.git |