Skip to content

Instantly share code, notes, and snippets.

View fbukevin's full-sized avatar
Working from home

Veck Hsiao fbukevin

Working from home
View GitHub Profile
fbukevin / xfyun_ots_demo.js
Last active October 28, 2019 02:21
訊飛科技機器翻譯 WebAPI Node.js Demo
View xfyun_ots_demo.js
const crypto = require('crypto');
const rq = require('request-promise');
class Translate {
constructor(host) {
// 应用 ID(到控制台获取)
this.APPID = '*******';
// 接口 APIKey(到控制台机器翻译服务页面获取)
this.APIKey = '**************';
// 接口 APISercet(到控制台机器翻译服务页面获取)
fbukevin /
Created March 11, 2019 18:10
Job Post: TensorFlow TPU, Swift for TensorFlow, and ML Compiler Infrastructure Teams

TensorFlow TPU, Swift for TensorFlow, and ML Compiler Infrastructure Teams

Google is an “AI first” company and Google Brain is making major investments to build out infrastructure for existing accelerators such as Cloud TPUs and GPUs as well as the coming wave of “edge” accelerators for mobile, automotive, AIY, and other low-power applications. Our infrastructure is pervasively open-source, and covers all levels of the stack - from compilers and programming languages, to high-performance runtimes, to production ML model development, support for multiple ML frameworks, and includes research on large batch training and other novel applications of these accelerators.

We are looking to hire for a significant number of positions in the areas listed below, including a number of technical leadership and manage

fbukevin /
Created January 22, 2019 08:50 — forked from jlehikoinen/
Swift syntax highlighting for Vim
# Swift syntax highlighting for Vim
# Source:
echo "--- Installing and configuring Pathogen.."
mkdir -p ~/.vim/autoload ~/.vim/bundle
curl -LSso ~/.vim/autoload/pathogen.vim
echo "execute pathogen#infect()
syntax on
View rspec_cheatsheet_controller_spec.rb
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
describe "GET #index" do
#describe "POST #create" do
#describe "GET #show" do
#describe "PATCH #update" do (or PUT #update)
#describe "DELETE #destroy" do
#describe "GET #new" do
fbukevin / Dockerfile
Created August 27, 2018 04:33
Use native Node.js module to create an HTTP server and package it to a Docker container
View Dockerfile
FROM node:10
WORKDIR /usr/src/app
COPY . .
CMD [ "node", "server.js" ]
View folder_level_policy.json
"Statement": [
"Sid": "AllowUserToSeeBucketListInTheConsole",
"Action": ["s3:ListAllMyBuckets", "s3:GetBucketLocation"],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::*"]
View S3 Structure Demo
|__ /Adele
|__ /Bob
|__ /David
View TimeTool.js
var TimeTool = {
// _year: '1997',
// _month: '01',
// _date: '01',
// _hour: '00',
// _minute: '00',
// _second: '00',
getTime: ()=>{
var date = new Date();
class TimeTool {
public Date stringToDate(String dateString){
Date date = null;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
try {
date = sdf.parse(dateString);
} catch(ParseException e) {
return date;
fbukevin /
Last active December 28, 2016 16:41
Load general text file in Android
public String loadText(Context cxt, String file){
String text = "";
InputStream is = cxt.getAssets().open(file);
int size = is.available();
byte[] buffer = new byte[size];;
text = new String(buffer, "UTF-8");
} catch(IOException ex){