Skip to content

Instantly share code, notes, and snippets.

View GaryQian's full-sized avatar
💭
Thinking...

Gary Qian GaryQian

💭
Thinking...
  • Mountain View, CA
View GitHub Profile
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
<<<<<<< /Users/garyq/projects/gallery/ios/Runner.xcodeproj/project.pbxproj
objectVersion = 51;
=======
objectVersion = 50;
>>>>>>> /var/folders/md/gm0zgfcj07vcsj6jkh_mp_wh00ff02/T/generatedTargetTemplate.v86hxpj8/ios/Runner.xcodeproj/project.pbxproj
// Copyright 2020 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:convert';
import 'package:meta/meta.dart';
import 'package:yaml/yaml.dart';
import '../base/common.dart';
import '../base/file_system.dart';
@GaryQian
GaryQian / main.dart
Created September 5, 2018 17:03
Text edit test app.
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
@GaryQian
GaryQian / main.dart
Created August 27, 2018 21:50
Isolate spawn and destruction flutter app
import 'package:flutter/material.dart';
import 'dart:isolate';
import 'dart:async';
void main() => runApp(new TestApp());
class TestApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class MovingPlatform : MonoBehaviour {
public Vector3 endPos;
public Vector3 startPos;
public bool autoSetStart = false;
public float duration = 5f;
import torch
import torch.nn as nn
from torch.autograd import Variable
from torch.nn import Parameter
import numpy as np
import math
# TODO: Your implementation goes here
class Encoder(nn.Module):
def __init__(self, vocab_size):
group: db
Users = {
UserID:number, Username:number, Email:number, ListingID:number, JoinDate:number, LocationID:number, TierID:number
}
Listing = {
ListingID:number, ItemName:number, Rating:number, StartPrice:number, MinBid:number, ItemCount:number, Pictures:number, PostDate:number, ActualCost:number, UserID:number, CategoryID:number
}
BM_FAKE_BENCHMARK 2 ns 2 ns 341097500
BM_FontCollectionCustomInit 134 ns 134 ns 5212873
BM_FontCollectionInit 48 ns 48 ns 14538885
BM_FontCollectionSkFontMgr 1908935 ns 1907320 ns 366
BM_FontCollectionGetMinikinFontCollectionForFamily 79 ns 79 ns 8430871
BM_PaintRecordInit 26 ns 26 ns 26430701
BM_ParagraphShortLayout 2660 ns 2660 ns 257609
BM_ParagraphLongLayout 143935 ns 143951 ns 4724
BM_ParagraphJustifyLayout 158201 ns 158219 ns 4633
BM_ParagraphManyStylesLayout 4914643 ns 4915139 ns 128
Here's a schedule and floor plan: https://drive.google.com/open?id=0B5AbcpKqlAL8NGpubTY3bWRXeWM
WHERE:
AT&T Park, 24 Willie Mays Plaza, San Francisco, CA 94107
O'Doul Gate on 3rd and Berry Street: https://goo.gl/maps/6wtZSgiT5Po
WHEN:
TOMORROW! June 21st from 5-10 P.M.
SCHEDULE:
def processAllPages(self):
self.initializeSchema()
self.acc = dict()
for (PageId, Page) in iter(self.subPlan):
for Tuple in Page:
# Load the lhs once per inner loop.
val = self.loadSchema(self.subSchema, Tuple)
ntup = self.subSchema.instantiate(*[val[f] for f in self.subSchema.fields])