- from sqlbolt
- Find the title of each film
SELECT title FROM movies;
- Find the director of each film
| #!/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 |
SELECT title FROM movies;
| You want to use a live wallpaper in x11? | |
| Great!!...but It come as a cost. | |
| I did experiment with .gif backend and non hardware accelerate backend, It sucks. | |
| CPU usage was so high (40% up just for idle), unacceptable for my laptop. | |
| Running with those backend for such a really long time will slowly turn your laptop into the hot potato. | |
| But don't be upset, we can reduce those cost. | |
| Using the video player with hardware video decoding support can reduce the cost. |
| using System; | |
| using UnityEngine; | |
| // Note : simple one way value binding example | |
| public class TestReactive : MonoBehaviour | |
| { | |
| public string Message | |
| { | |
| get => message; | |
| set => SetWithNotify(ref message, value, nameof(Message), OnValueChanged); |
| #! /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 |
| /* | |
| Note : adhocs for unity 2022.3.31 | |
| TODO : Need to Support Unity 6 with the new callback : https://docs.unity3d.com/6000.0/Documentation/ScriptReference/EditorApplication.UpdateMainWindowTitle.html | |
| and the new force update window title method : https://docs.unity3d.com/6000.0/Documentation/ScriptReference/EditorApplication.UpdateMainWindowTitle.html | |
| */ | |
| #if UNITY_2022_3_31 | |
| #define EDITOR_ALLOW_BUILDTYPE_STATUS | |
| #endif |
| # Config that is very close to a i3 window manager's keybinding. | |
| set -s escape-time 0 | |
| setw -g aggressive-resize on | |
| # First remove *all* keybindings | |
| unbind-key -a | |
| # List keys | |
| bind-key ? list-keys |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditor.Overlays; | |
| using UnityEditor.Toolbars; | |
| #if !UNITY_EDITOR | |
| #error This script must be placed under "Editor/" directory. | |
| #endif | |
| [Overlay(typeof(SceneView), "CustomToolbar/SceneViewFollowGamePlayCameraOverlay")] |
| 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) | |
| { |