This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/petergoldstein/dalli/issues/956#issuecomment-1464198149 | |
Identity Map | |
https://en.wikipedia.org/wiki/Identity_map_pattern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright Cape Guy Ltd. 2015. http://capeguy.co.uk. | |
// Provided under the terms of the MIT license - | |
// http://opensource.org/licenses/MIT. Cape Guy accepts | |
// no responsibility for any damages, financial or otherwise, | |
// incurred as a result of using this code. | |
using UnityEngine; | |
using UnityEditor; | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.IO; | |
public class Tester | |
{ | |
static List<FileInfo> GetFilesRecursive(string path, string matchFormat = "*") | |
{ | |
var files = new List<FileInfo>(); | |
var lookups = new Stack<DirectoryInfo>(new [] { new DirectoryInfo(path) }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ローカルのTimeZoneに依存しないTimeClass | |
using System; | |
using System.ComponentModel; | |
[TypeConverter(typeof(ServerTimeConverter))] | |
public struct ServerTime : IComparable, IComparable<ServerTime>, IEquatable<ServerTime> | |
{ | |
static DateTimeOffset timeContext; | |
static TimeSpan offset; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capistrano/setup' | |
require 'capistrano/deploy' | |
require 'capistrano/rvm' | |
require 'capistrano/bundler' | |
#require 'capistrano/rails/assets' | |
require 'capistrano/rails/migrations' | |
require 'capistrano3/unicorn' | |
require 'whenever/capistrano' | |
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined. |