Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Veck Hsiao fbukevin

🏠
Working from home
Block or report user

Report or block fbukevin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fbukevin
fbukevin / TeamJobPost.md
Created Mar 11, 2019 — forked from lattner/TeamJobPost.md
Job Post: TensorFlow TPU, Swift for TensorFlow, and ML Compiler Infrastructure Teams
View TeamJobPost.md

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
fbukevin / setup.sh
Created Jan 22, 2019 — forked from jlehikoinen/setup.sh
Swift syntax highlighting for Vim
View setup.sh
# Swift syntax highlighting for Vim
# Source: http://wingsquare.com/blog/swift-script-syntax-highlighting-and-indentation-for-vim-text-editor/
echo "--- Installing and configuring Pathogen.."
mkdir -p ~/.vim/autoload ~/.vim/bundle
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/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
fbukevin / Dockerfile
Created Aug 27, 2018
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 . .
EXPOSE 3000
CMD [ "node", "server.js" ]
View folder_level_policy.json
{
"Version":"2012-10-17",
"Statement": [
{
"Sid": "AllowUserToSeeBucketListInTheConsole",
"Action": ["s3:ListAllMyBuckets", "s3:GetBucketLocation"],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::*"]
},
{
View S3 Structure Demo
employee
|__ /Adele
|__ /Bob
|__ /David
|
...
@fbukevin
fbukevin / snap.animAlongPath.js
Created Jan 22, 2016
Snap.svg plug - Animate along path
View snap.animAlongPath.js
Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
var elproto = Element.prototype;
elproto.animateAlongPath = function (path, el, start, duration, easing) {
var callback = this;
el.transform('t0,0');
var len = Snap.path.getTotalLength(path),
elBB = el.getBBox(),
elCenter = {
x: elBB.x + (elBB.width / 2),
y: elBB.y + (elBB.height / 2),
View TimeTool.js
var TimeTool = {
// _year: '1997',
// _month: '01',
// _date: '01',
// _hour: '00',
// _minute: '00',
// _second: '00',
getTime: ()=>{
var date = new Date();
@fbukevin
fbukevin / loadText.java
Last active Dec 28, 2016
Load general text file in Android
View loadText.java
public String loadText(Context cxt, String file){
String text = "";
try{
InputStream is = cxt.getAssets().open(file);
int size = is.available();
byte[] buffer = new byte[size];
is.read(buffer);
is.close();
text = new String(buffer, "UTF-8");
} catch(IOException ex){
View TimeTool.java
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;
You can’t perform that action at this time.