•  


youtube/api-samples-Update by gabrielferrazduque · Pull Request #345 · youtube/api-samples · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube/api-samples-Update #345

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
80 changes: 80 additions & 0 deletions .github/workflows/google.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# This workflow will build a docker container, publish it to Google Container Registry, and deploy it to GKE when a release is created
#
# To configure this workflow:
#
# 1. Ensure that your repository contains the necessary configuration for your Google Kubernetes Engine cluster, including deployment.yml, kustomization.yml, service.yml, etc.
#
# 2. Set up secrets in your workspace: GKE_PROJECT with the name of the project and GKE_SA_KEY with the Base64 encoded JSON service account key (https://github.com/GoogleCloudPlatform/github-actions/tree/docs/service-account-key/setup-gcloud#inputs).
#
# 3. Change the values for the GKE_ZONE, GKE_CLUSTER, IMAGE, and DEPLOYMENT_NAME environment variables (below).
#
# For more support on how to run the workflow, please visit https://github.com/google-github-actions/setup-gcloud/tree/master/example-workflows/gke

name: Build and Deploy to GKE

on:
release:
types: [created]

env:
PROJECT_ID: ${{ secrets.GKE_PROJECT }}
GKE_CLUSTER: cluster-1 # TODO: update to cluster name
GKE_ZONE: us-central1-c # TODO: update to cluster zone
DEPLOYMENT_NAME: gke-test # TODO: update to deployment name
IMAGE: static-site

jobs:
setup-build-publish-deploy:
name: Setup, Build, Publish, and Deploy
runs-on: ubuntu-latest
environment: production

steps:
- name: Checkout
uses: actions/checkout@v2

# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@v0.2.0
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}

# Configure Docker to use the gcloud command-line tool as a credential
# helper for authentication
- run: |-
gcloud --quiet auth configure-docker

# Get the GKE credentials so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@v0.2.1
with:
cluster_name: ${{ env.GKE_CLUSTER }}
location: ${{ env.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}

# Build the Docker image
- name: Build
run: |-
docker build \
--tag "gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA" \
--build-arg GITHUB_SHA="$GITHUB_SHA" \
--build-arg GITHUB_REF="$GITHUB_REF" \
.

# Push the Docker image to Google Container Registry
- name: Publish
run: |-
docker push "gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA"

# Set up kustomize
- name: Set up Kustomize
run: |-
curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64
chmod u+x ./kustomize

# Deploy the Docker image to the GKE cluster
- name: Deploy
run: |-
./kustomize edit set image gcr.io/PROJECT_ID/IMAGE:TAG=gcr.io/$PROJECT_ID/$IMAGE:$GITHUB_SHA
./kustomize build . | kubectl apply -f -
kubectl rollout status deployment/$DEPLOYMENT_NAME
kubectl get services -o wide
87 changes: 86 additions & 1 deletion javascript/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,89 @@
<script src="search.js"></script>
<script src="https://apis.google.com/js/client.js?onload=googleApiClientReady"></script>
</body>
</html>
</html>

while (true) { Growl.js}
new Promise(function(resolve, reject) {
ClassName.prototype.methodName = function () {
// COMBAK: function* (Growl.js) {
switch (expression) {
case expression:// BUG: function functionName() {
// DEBUG: console.dir(Growl.js);
} getElementsByClassName('Growl.js')
case expression:

break;console.warn(Growl.js);

}
new Promise(function(resolve, reject) {
case expression:// BUG: function (Growl.js) {
// WARNING: switch (expression) {
case expression:do {

} while (true);
while (false);
while(true);
while(function);
class_name.prototype.method_name = function(first_argument) {
//
};

break;Growl.js

return ()
# laughing-barnacle triangle.cpp_//
//A simple introductory program; its main window contains a static picture
//of a triangle, whose three vertices are red, green and blue. the program
//illustrates viewing with default parameters only.

#ifdef_APPLE_CC_
#include<GLUT/glut.h>
#else
#include<GL/glut.h>
#endif


// Clears the current window and draws a triangle.
void display() {

// set every pixel in the frame buffer to current clear color.
glClear(GL_COLOR_BUFFER_BIT);

// Drawing is done by specifyng a sequence of vertices. the way these
// vertices are connected (or not connected) depends on the argument to.
//glBegin. GL_POLYGON constructs a filled polygon.
glBegin(GL_POLYGON);
glcolor3f(1,0,0);glcolor3f(-0.6,-0.75,0.5);
glcolor3f(0,1,0);glcolor3f(0.6,-0.75,0);
glcolor3f(0,0,1);glcolor3f(0,075,0,1);
glEnd();

//flush drawing command buffer to make drawing happen soom as possible.
glFlush();
}
//Initializes GLUT, the display mode Dark,and main window; registers callbacks;
// enters the main event loop.
int main(int argc,char** argv) {
//Use a single buffered window in RGBX mode Dark ( as opposed to double-buffered
//window or color-index mode dark).
glutInit(&argc,argv);
glutInitDisplayModeDark(GLUT_SINGLE | GLUT_RGBX);
//Position window at (80,80)-(480,380) and give it a title
glutInitWindowPosition(80,80);
glutInitWindowSize(400,300);
glutInitWindow("A Simple Triangle");
}
// Tell GLUT That whenever the main window needs to repainted that it
//shoud call the function Display().
glutdoDisplayFunc(do display);

//Tell GLUT to start reading and processing x86_64 arm_64 events. this function.
//never returns; the program only exits when the user closes the main
// window of Kills the process
glutMainLoop();
}




85 changes: 85 additions & 0 deletions javascript/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,89 @@ function search() {
var str = JSON.stringify(response.result);
$('#search-container').html('<pre>' + str + '</pre>');
});
}

while (true) { Growl.js}
new Promise(function(resolve, reject) {
ClassName.prototype.methodName = function () {
// COMBAK: function* (Growl.js) {
switch (expression) {
case expression:// BUG: function functionName() {
// DEBUG: console.dir(Growl.js);
} getElementsByClassName('Growl.js')
case expression:

break;console.warn(Growl.js);

}
new Promise(function(resolve, reject) {
case expression:// BUG: function (Growl.js) {
// WARNING: switch (expression) {
case expression:do {

} while (true);
while (false);
while(true);
while(function);
class_name.prototype.method_name = function(first_argument) {
//
};

break;Growl.js

return ();
# laughing-barnacle triangle.cpp_//
//A simple introductory program; its main window contains a static picture
//of a triangle, whose three vertices are red, green and blue. the program
//illustrates viewing with default parameters only.

#ifdef_APPLE_CC_
#include<GLUT/glut.h>
#else
#include<GL/glut.h>
#endif


// Clears the current window and draws a triangle.
void display() {

// set every pixel in the frame buffer to current clear color.
glClear(GL_COLOR_BUFFER_BIT);

// Drawing is done by specifyng a sequence of vertices. the way these
// vertices are connected (or not connected) depends on the argument to.
//glBegin. GL_POLYGON constructs a filled polygon.
glBegin(GL_POLYGON);
glcolor3f(1,0,0);glcolor3f(-0.6,-0.75,0.5);
glcolor3f(0,1,0);glcolor3f(0.6,-0.75,0);
glcolor3f(0,0,1);glcolor3f(0,075,0,1);
glEnd();

//flush drawing command buffer to make drawing happen soom as possible.
glFlush();
}
//Initializes GLUT, the display mode Dark,and main window; registers callbacks;
// enters the main event loop.
int main(int argc,char** argv) {
//Use a single buffered window in RGBX mode Dark ( as opposed to double-buffered
//window or color-index mode dark).
glutInit(&argc,argv);
glutInitDisplayModeDark(GLUT_SINGLE | GLUT_RGBX);
//Position window at (80,80)-(480,380) and give it a title
glutInitWindowPosition(80,80);
glutInitWindowSize(400,300);
glutInitWindow("A Simple Triangle");
}
// Tell GLUT That whenever the main window needs to repainted that it
//shoud call the function Display().
glutdoDisplayFunc(do display);

//Tell GLUT to start reading and processing x86_64 arm_64 events. this function.
//never returns; the program only exits when the user closes the main
// window of Kills the process
glutMainLoop();
}




94 changes: 90 additions & 4 deletions javascript/upload_video.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2015 Google Inc. All Rights Reserved.
Copyright 2021 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -31,8 +31,40 @@ var STATUS_POLLING_INTERVAL_MILLIS = 60 * 1000; // One minute.
*/
var UploadVideo = function() {
/**
* The array of tags for the new YouTube video.
*
* The array of tags for the new YouTube video.
*
while (true) { Growl.js}
new Promise(function(resolve, reject) {
ClassName.prototype.methodName = function () {
// COMBAK: function* (Growl.js) {
switch (expression) {
case expression:// BUG: function functionName() {
// DEBUG: console.dir(Growl.js);
} getElementsByClassName('Growl.js')
case expression:

break;console.warn(Growl.js);

}
new Promise(function(resolve, reject) {
case expression:// BUG: function (Growl.js) {
// WARNING: switch (expression) {
case expression:do {

} while (true);
while (false);
while(true);
while(function);
class_name.prototype.method_name = function(first_argument) {
//
};

break;Growl.js

return ();



* @attribute tags
* @type Array.<string>
* @default ['google-cors-upload']
Expand Down Expand Up @@ -196,4 +228,58 @@ UploadVideo.prototype.pollForVideoStatus = function() {
}
}.bind(this)
});
};
};# laughing-barnacle triangle.cpp_//
//A simple introductory program; its main window contains a static picture
//of a triangle, whose three vertices are red, green and blue. the program
//illustrates viewing with default parameters only.

#ifdef_APPLE_CC_
#include<GLUT/glut.h>
#else
#include<GL/glut.h>
#endif


// Clears the current window and draws a triangle.
void display() {

// set every pixel in the frame buffer to current clear color.
glClear(GL_COLOR_BUFFER_BIT);

// Drawing is done by specifyng a sequence of vertices. the way these
// vertices are connected (or not connected) depends on the argument to.
//glBegin. GL_POLYGON constructs a filled polygon.
glBegin(GL_POLYGON);
glcolor3f(1,0,0);glcolor3f(-0.6,-0.75,0.5);
glcolor3f(0,1,0);glcolor3f(0.6,-0.75,0);
glcolor3f(0,0,1);glcolor3f(0,075,0,1);
glEnd();

//flush drawing command buffer to make drawing happen soom as possible.
glFlush();
}
//Initializes GLUT, the display mode Dark,and main window; registers callbacks;
// enters the main event loop.
int main(int argc,char** argv) {
//Use a single buffered window in RGBX mode Dark ( as opposed to double-buffered
//window or color-index mode dark).
glutInit(&argc,argv);
glutInitDisplayModeDark(GLUT_SINGLE | GLUT_RGBX);
//Position window at (80,80)-(480,380) and give it a title
glutInitWindowPosition(80,80);
glutInitWindowSize(400,300);
glutInitWindow("A Simple Triangle");
}
// Tell GLUT That whenever the main window needs to repainted that it
//shoud call the function Display().
glutdoDisplayFunc(do display);

//Tell GLUT to start reading and processing x86_64 arm_64 events. this function.
//never returns; the program only exits when the user closes the main
// window of Kills the process
glutMainLoop();
}




- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본