Skip to content

Instantly share code, notes, and snippets.

View shadoath's full-sized avatar
📚
Learning

Skylar Bolton shadoath

📚
Learning
View GitHub Profile
@roalcantara
roalcantara / elasticsearch.rb
Created March 24, 2017 14:58
Rails > Disabling elasticsearch requests durying rspec tests
# spec/support/elasticsearch.rb
RSpec.configure do |config|
config.before :each do
stub_request(:any, /localhost:9200/).to_return(body: "<html>a webpage!</html>", status: 200)
end
end
@ruzrobert
ruzrobert / Vibration.cs
Last active May 9, 2024 10:34
Android Vibration for Unity 3D. Supports all API: 1 - 29 (auto detect), Amplitudes, Predefined Effects, both Legacy and >=26 APIs.
using System.Diagnostics.CodeAnalysis;
using UnityEngine;
// Dont forget to add "using RDG;" to the top of your script!
namespace RDG
{
/// <summary>
/// Class for controlling Vibration. Automatically initializes before scene is loaded.
/// </summary>
public static class Vibration