(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/bin/bash | |
| # Tom Hale, 2016. MIT Licence. | |
| # Print out 256 colours, with each number printed in its corresponding colour | |
| # See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
| set -eu # Fail on errors or undeclared variables | |
| printable_colours=256 |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine.Assertions; | |
| using System; | |
| public class SkinnedMeshUpdater : MonoBehaviour | |
| { | |
| [SerializeField] | |
| SkinnedMeshRenderer original; |
| AndroidJavaObject localMediaPlayer = null; | |
| using (AndroidJavaClass javaUnityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) | |
| { | |
| using (currentActivity = javaUnityPlayer.GetStatic<AndroidJavaObject>("currentActivity")) | |
| { | |
| localMediaPlayer = new AndroidJavaObject("my/plugin/vr/ExoPlayerBridge", currentActivity); | |
| if (localMediaPlayer != null) | |
| { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| using UnityEngine; | |
| using System.Collections; | |
| using UnityEditor; | |
| [CustomEditor (typeof(TriggerContainer))] | |
| public class TriggerContainerEditor : Editor | |
| { | |
| private SerializedObject obj; |
| #! /bin/sh | |
| bspc config top_padding 24 | |
| bspc config bottom_padding 0 | |
| bspc config left_padding 0 | |
| bspc config right_padding 0 | |
| bspc config border_width 3 | |
| bspc config window_gap 16 | |
| # Borders and gaps |
| #!/usr/bin/env python2 | |
| #-*- coding: utf-8 -*- | |
| # NOTE FOR WINDOWS USERS: | |
| # You can download a "exefied" version of this game at: | |
| # http://hi-im.laria.me/progs/tetris_py_exefied.zip | |
| # If a DLL is missing or something like this, write an E-Mail ([email protected]) | |
| # or leave a comment on this gist. | |
| # Very simple tetris implementation |
| # | |
| # ββββ ββββ βββββββ βββ ββββββββββββββββββ βββββββββ βββββββ | |
| # βββββ βββββββββββββββββ βββββββββββββββββββ ββββββββββββββββββ | |
| # ββββββββββββββ ββββββ βββββββββ βββ βββ βββ βββ βββ | |
| # ββββββββββββββ βββββββ ββββββββββ βββ βββ βββ βββ βββ | |
| # βββ βββ ββββββββββββ βββββββ ββββββββββββββββ βββ βββββββββ | |
| # βββ βββ βββββββ βββββ βββββββββββββββ βββ βββββββ | |
| # | |
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # β https://github.com/denilsonsa/udev-joystick-blacklist β |
| [global] | |
| font = Ubuntu 10 | |
| # Allow a small subset of html markup in notifications and formats: | |
| # <b>bold</b> | |
| # <i>italic</i> | |
| # <s>strikethrough</s> | |
| # <u>underline</u> | |
| # | |
| # For a complete reference see |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |