Vim Advent Calendar 2012の345日目(2013-11-10)の記事です。
普通のWindowsアプリにおいて、擬似的にViエディタのNormal mode編集操作を使えるようにするIMEを作りました。
Vim Advent Calendar 2012の345日目(2013-11-10)の記事です。
普通のWindowsアプリにおいて、擬似的にViエディタのNormal mode編集操作を使えるようにするIMEを作りました。
using System.Diagnostics; | |
using System.Net; | |
using APITesting.Contracts; | |
namespace YOUR_NAMESPACE_HERE; | |
public readonly struct ApiError : IEquatable<ApiError> | |
{ | |
private const string DefaultErrorMessage = "An error occurred"; | |
internal ApiError(HttpStatusCode statusCode, object? data) |
#! /bin/bash | |
# | |
# This is a simple bash script, designed to allow | |
# quick download and installation of the FindVUK | |
# AACS VUK database. | |
# | |
# This allows Blu-Ray disks who's VUK is known | |
# to be played on systems using libaacs. | |
# | |
# It's reccomended to schedule this file to run |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
// Based on the Unity Wiki FloatingOrigin script by Peter Stirling | |
// URL: http://wiki.unity3d.com/index.php/Floating_Origin | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class FloatingOrigin : MonoBehaviour | |
{ | |
[Tooltip("Point of reference from which to check the distance to origin.")] | |
public Transform ReferenceObject = null; |
We need to install a tool called jenv - Java version manager which is similar to nvm(nodeJs version manager).
brew install jenv
Export the jenv path to .bash_profile or .zshrc - whatever you are using. I am using .zshrc
/** | |
* Get a random floating point number between `min` and `max`. | |
* | |
* @param {number} min - min number | |
* @param {number} max - max number | |
* @return {number} a random floating point number | |
*/ | |
function getRandomFloat(min, max) { | |
return Math.random() * (max - min) + min; | |
} |
I'll preface this with three things. 1. I prefer schemes over Common Lisps, and I prefer Racket of the Schemes. 2. There is more to it than the points I raise here. 3. I assume you have no previous experience with Lisp, and don't have a preference for Schemes over Common Lisp. With all that out of the way... I would say Common Lisp/SBCL. Let me explain
Now as to why Common Lisp over Scheme
#!/data/data/com.termux/files/usr/bin/sh | |
# sudo for Termux | |
# For security reasons some environent variables are reset by su | |
# So we need to set LD_LIBRARY_PATH | |
# Root's HOME is set to 'termux's home/.suroot'. | |
# Startup files and other stuffs can be added there. | |
ROOT_HOME=$HOME/.suroot |
Hello and welcome to my Shortcuts Catalog!
This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.
It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.
Enjoy!