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
local curr_key = KEYS[1] -- Get the key from the KEYS array. | |
local current_time = redis.call('TIME') -- Get the current server time. | |
local current_seconds = tonumber(current_time[1]) -- Extract the seconds part and convert it to a number. | |
local num_windows = tonumber(ARGV[1]) -- Get the number of windows/rules from the first argument. | |
local request_counts = {} -- Store the request counts for each window. | |
-- Iterate through each window/rule to check the rate limits and get initial request counts. | |
for i = 2, num_windows * 2, 2 do | |
local window_seconds = tonumber(ARGV[i]) -- Get the window duration in seconds. |
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 Microsoft.OData.ModelBuilder; | |
using Microsoft.OData.UriParser; | |
namespace LearnOdata; | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// create the Edm Model |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
show: true, | |
notShow: Ember.computed.not('show') | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
a:'initial' | |
}); |
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; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices.WindowsRuntime; | |
using System.Windows.Input; | |
using Windows.Foundation; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Controls.Primitives; | |
using Windows.UI.Xaml.Media; |