GUIStyle mystyle = new GUIStyle("some string from the list below");
- "CN Box"
- "Button"
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
[RequireComponent(typeof(ScrollRect))] | |
public class ScrollRectAutoScroll : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler | |
{ | |
public float scrollSpeed = 10f; | |
private bool mouseOver = false; |
using UnityEngine; | |
public class Colors | |
{ | |
// NOTE: The follwing color names come from the CSS3 specification, Section 4.3 Extended Color Keywords | |
// http://www.w3.org/TR/css3-color/#svg-color | |
public static readonly Color AliceBlue = new Color32(240,248,255,255); | |
public static readonly Color AntiqueWhite = new Color32(250,235,215,255); | |
public static readonly Color Aqua= new Color32(0,255,255,255); |
ScriptableObject Icon | |
_Popup | |
_Help | |
Clipboard | |
SocialNetworks.UDNOpen | |
SocialNetworks.Tweet | |
SocialNetworks.FacebookShare | |
SocialNetworks.LinkedInShare | |
SocialNetworks.UDNLogo | |
animationvisibilitytoggleoff |
# Suppose we already have LXD, and already add the default image repo as images: | |
# 1. Start a new Trusty LXC container | |
host:~$ lxc launch images:ubuntu/trusty/amd64 cuda-trusty | |
# 2. Download and install CUDA on *both* host & LXC container, from https://developer.nvidia.com/cuda-downloads | |
# Note that host and container have to have *exactly* the same driver version | |
# 3. Add necessary Nvidia devices to LXC container | |
host:~$ lxc config device add cuda-trusty nvidia0 unix-char path=/dev/nvidia0 | |
host:~$ lxc config device add cuda-trusty nvidiactl unix-char path=/dev/nvidiactl |
#!/usr/bin/env sh | |
set -euv | |
# Updated on April 2019 to reflect changes in GN | |
# See: | |
# https://github.com/ninja-build/ninja | |
# https://gn.googlesource.com/gn/ | |
# We need a recent git |
// Author: runevision | |
// URL: http://wiki.unity3d.com/index.php?title=Triangulator | |
// Version: http://wiki.unity3d.com/index.php?title=Triangulator&oldid=14208 | |
// | |
// Then modified a bit. -NC | |
using UnityEngine; | |
using System.Collections.Generic; | |
using System.Linq; |
(defn keyword->pg-enum | |
"Convert a keyword value into an enum-compatible object." | |
[enum-type kw] | |
(doto (org.postgresql.util.PGobject.) | |
(.setType enum-type) | |
(.setValue (name kw)))) | |
(def ->status | |
"Convert a keyword status into a something_status enum object" | |
(partial keyword->pg-enum "something_status")) |
#lang racket/base | |
; One way to define a logger | |
(define lg (make-logger 'my-logger)) | |
; Define a receiver for this logger, along with a log level | |
(define rc (make-log-receiver lg 'error)) ; also try with 'debug | |
; Another way to define a logger, with additional forms | |
(define-logger lg2) | |
(define rc2 (make-log-receiver lg2-logger 'debug)) |
using System; | |
using System.Net; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
public class WebClientEx : WebClient | |
{ | |
public WebClientEx(CookieContainer container) |