This post shows how to install android sdk tools without Android Studio. We might need to do in many cases like setting up an CI machine ..etc
We need java, android(tools, build tools), gradle.
This post shows how to install android sdk tools without Android Studio. We might need to do in many cases like setting up an CI machine ..etc
We need java, android(tools, build tools), gradle.
| using UnityEngine; | |
| public class DeviceOrientationManager : MonoBehaviour | |
| { | |
| private const float ORIENTATION_CHECK_INTERVAL = 0.5f; | |
| private float nextOrientationCheckTime; | |
| private static ScreenOrientation m_currentOrientation; | |
| public static ScreenOrientation CurrentOrientation |
原文:技术琐话
前情提要
平台化架构由于缺乏对于前端业务一以贯之的端到端的支撑能力,平台与平台之间存在gap。平台化架构按照康威定律,必然是几个平台,几个团队,涉及到巨大的沟通成本而导致协作困难。平台化架构在数据化运营上存在短板,往往需要把多个平台的数据集成到一起并加工分析而产生新的支持到业务的价值。
| # !/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import json | |
| from urlparse import urlparse, parse_qs | |
| import requests | |
| /* | |
| MIT License | |
| Copyright (c) 2016 Jesse Ringrose | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
| using UnityEngine; | |
| using Cryptography = System.Security.Cryptography; | |
| using System.Text; | |
| #if UNITY_IOS | |
| using UnityEngine.iOS; | |
| #endif | |
| /// <summary> | |
| /// AdMobUtility |
| //wearversion | |
| //wearlog | |
| //wearvoiceinputenable | |
| //wearvoiceinputdisable | |
| //weargoogleapi | |
| //assert | |
| //pushassert | |
| //uplog | |
| //upcrash | |
| //switchnotificationstatus |
| #Evaluate Poker Hands at the flop in Texas Hold'em | |
| import collections | |
| #Some Constants | |
| VALUES = ["A","2","3","4","5","6","7","8","9","10","J","Q","K"] | |
| SUITS = ["s","h","d","c"] | |
| HIGH_STRAIGHT = ["10", "J", "Q", "K", "A"] | |
| #Helper function to check input | |
| def check_card(card): |
| using UnityEngine; | |
| using System.Collections; | |
| public class Greyscale : MonoBehaviour { | |
| public Material mat; | |
| void Start() { | |
| mat.SetFloat( "_Power", 0.0f ); | |
| } |