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
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import requests | |
import sys | |
API_ROOT = "https://api.vibe.us/v1" | |
ACCESS_TOKEN = os.getenv("VIBE_ACCESS_TOKEN") |
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
// https://fiddle.skia.org/c/f50f0772647b08f410f0600f2e72471e | |
SkPath getSrcPath() { | |
SkPath path; | |
path.setFillType(SkPathFillType::kWinding); | |
path.moveTo(SkBits2Float(0x454c5562), SkBits2Float(0x44c0822e)); // 3269.34f, 1540.07f | |
path.lineTo(SkBits2Float(0x454c5e0f), SkBits2Float(0x44c0ba4a)); // 3269.88f, 1541.82f | |
path.quadTo(SkBits2Float(0x454c66d0), SkBits2Float(0x44c0f2e4), SkBits2Float(0x454c6c06), SkBits2Float(0x44c11718)); // 3270.43f, 1543.59f, 3270.75f, 1544.72f | |
path.quadTo(SkBits2Float(0x454c716b), SkBits2Float(0x44c13c81), SkBits2Float(0x454c7506), SkBits2Float(0x44c160fd)); // 3271.09f, 1545.89f, 3271.31f, 1547.03f | |
path.quadTo(SkBits2Float(0x454c78ae), SkBits2Float(0x44c18600), SkBits2Float(0x454c7a00), SkBits2Float(0x44c1a8ce)); // 3271.54f, 1548.19f, 3271.62f, 1549.28f |
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
#!/usr/bin/env python | |
import boto3 | |
import os | |
import json | |
STREAM_ARN = 'YOUR_DB_STREAM_ARN' | |
client = boto3.client('dynamodbstreams') | |
stream = client.describe_stream(StreamArn=STREAM_ARN) |
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
BOARD=vibe-eng VERSION=codebuild-test FASTBUILD=1 ISFULLIMAGE=1 OTAPACKAGE=0 ./vibe_build.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
Packaging...step 1: remove images last build. | |
Packaging...step 2: copy the images and mkupdate. | |
start to make update.img... | |
Android Firmware Package Tool v1.62 | |
------ PACKAGE ------ | |
Error:<ParseParamFile> open file failed,err=20! | |
------ FAILED ------ | |
Press any key to quit: | |
/home/jiulongw/w/vibe-rk3399-tpv/rk3399_nougat_release | |
cp: cannot stat 'RKTools/linux/Linux_Pack_Firmware/rockdev/update.img': No such file or directory |
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
// Uncomment below to upload file. | |
// body := &bytes.Buffer{} | |
// writer := multipart.NewWriter(body) | |
// file, err := writer.CreateFormFile("file", "board.pdf") | |
// if err != nil { | |
// return response.Error(err) | |
// } | |
// if _, err := io.Copy(file, bytes.NewReader(pdf)); err != nil { | |
// return response.Error(err) |
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
find . -type f -name "*.js" | xargs sed -i.bak "s/room/channel/g" | |
find . -type f -name "*.js" | xargs sed -i.bak "s/Room/Channel/g" | |
find . -type f -name "*.js" | xargs sed -i.bak "s/ROOM/CHANNEL/g" | |
find . -type f -name "*.css" | xargs sed -i.bak "s/room/channel/g" | |
find . -type f -name "*.css" | xargs sed -i.bak "s/Room/Channel/g" | |
find . -type f -name "*.css" | xargs sed -i.bak "s/ROOM/CHANNEL/g" | |
find . -type f -name "*.js" | xargs sed -i.bak "s/account/user/g" | |
find . -type f -name "*.js" | xargs sed -i.bak "s/Account/User/g" | |
find . -type f -name "*.js" | xargs sed -i.bak "s/ACCOUNT/USER/g" | |
find . -type f -name "*.css" | xargs sed -i.bak "s/account/user/g" |
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
(function($, document, window) { | |
var ua = navigator.userAgent.toLowerCase(); | |
var isWechat = ua.indexOf("micromessenger") >= 0; | |
var Player = function(videos) { | |
this.init(videos); | |
}; | |
Player.prototype.init = function(videos) { | |
this.videos = []; |
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
(function($, document, window) { | |
var Player = function(videos) { | |
this.init(videos); | |
}; | |
Player.prototype.init = function(videos) { | |
this.videos = []; | |
videos.each($.proxy(function(i, el) { | |
var $el = $(el); |
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
{"sig":"00268e07037afa67e6f2a3479a313bb80ba1cee8cab59e8671de0d9f90aa75c7306442d3537909ddc530df720573b5193f1e848332c829fdd5706b7a703c89370","msghash":"26643ebd0e6468cc3ad087cca702c08c76cd9225432451c0e10ce1562f651415"} |
NewerOlder