Instantly share code, notes, and snippets.

View EditorLog.txt
LICENSE SYSTEM [201734 6:41:23] No start/stop license dates set
LICENSE SYSTEM [201734 6:41:23] Next license update check is after 2017-02-04T20:02:00
Built from '5.5/release' branch; Version is '5.5.0f3 (38b4efef76f0) revision 3716335'; Using compiler version '160040219'
OS: 'Windows 10 (10.0.0) 64bit' Language: 'ru' Physical Memory: 16331 MB
BatchMode: 0, IsHumanControllingUs: 1, StartBugReporterOnCrash: 1, Is64bit: 1, IsPro: 0
Initialize mono
Mono path[0] = 'C:/Soft/Unity/Editor/Data/Managed'
View gist:bc4f4aaa1f2ea198801be19937e8ad6f
package ru.kvins;
import java.nio.charset.StandardCharsets;
import java.util.LinkedList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
View Local.cs
using UnityEngine;
using System.Xml;
using System.IO;
using System;
using System.Text;
using System.Collections.Generic;
public class Local
{
View NONTOP_original.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View index.js
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
View main.html
<!DOCTYPE html>
<!-- CSP support mode (required for Windows Universal apps): https://docs.angularjs.org/api/ng/directive/ngCsp -->
<html lang="en" ng-app="app" ng-csp>
<head>
<meta charset="utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
View gist:f79f8575cd3b5e1b922b
public class ColorPickerView extends View implements View.OnTouchListener {
private OnColorChangeListener mListener;
private int mInitialColor, mInitialAlpha;
private String mKey;
// Константы, определяющие что именно мы устанавливаем в данный момент
protected static final int SET_NONE = -1;
protected static final int SET_COLOR = 0;
protected static final int SET_SATUR = 1;
protected static final int SET_ALPHA = 2;